powered by
rcomppareto returns a random sample of a composite distribution with a Pareto upper tail, with a specified distribution at the lower tail.
rcomppareto
rcomppareto(n, spec, alpha = 1, theta = 1, ...)
an object of the same length of n
number of observations
The selection of the lower tail (head) distribution
The shape parameter of the Pareto distribution
The scale parameter of Pareto, also serve as the location parameter of the composite model
The parameter of the lower tail (head) distribution
n<-100 rcomppareto(n,"weibull", alpha = 1.5, theta = 1.5, shape = 2, scale = 2)
Run the code above in your browser using DataLab