rwdcomppareto {CompPareto} | R Documentation |
Generating random number from a discrete composite distribution with Pareto tail
Description
rwdcomppareto
returns a random sample of a discrete composite distribution with a Pareto upper tail, with a specified distribution at the lower tail.
Usage
rwdcomppareto(n, spec, alpha = 1, theta = 1, ...)
Arguments
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 |
Value
an object of the same length of n
Examples
n<-10
rcomppareto(n,"weibull", alpha = 1.5, theta = 1.5, shape = 2, scale = 2)
[Package CompPareto version 0.1.0 Index]