Learn R Programming

CompPareto (version 0.1.0)

rcomppareto: Generating random number from a discrete composite distribution with Pareto tail

Description

rcomppareto returns a random sample of a composite distribution with a Pareto upper tail, with a specified distribution at the lower tail.

Usage

rcomppareto(n, spec, alpha = 1, theta = 1, ...)

Value

an object of the same length of n

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

Examples

Run this code
n<-100
rcomppareto(n,"weibull", alpha = 1.5, theta = 1.5, shape = 2, scale = 2)

Run the code above in your browser using DataLab