rwdcomppareto {CompPareto} | R Documentation |
rwdcomppareto
returns a random sample of a discrete composite distribution with a Pareto upper tail, with a specified distribution at the lower tail.
rwdcomppareto(n, spec, alpha = 1, theta = 1, ...)
n |
number of observations |
spec |
The selection of the lower tail (head) distribution |
alpha |
The shape parameter of the Pareto distribution |
theta |
The scale parameter of Pareto, also serve as the location parameter of the composite model |
... |
The parameter of the lower tail (head) distribution |
an object of the same length of n
n<-10
rcomppareto(n,"weibull", alpha = 1.5, theta = 1.5, shape = 2, scale = 2)