Learn R Programming

ParetoPosStable (version 1.0.1)

rPPS: Random generation for the Pareto Positive Stable (PPS) distribution

Description

rPPS generates pseudo-random values of a PPS distribution.

Usage

rPPS(n, lam, sc, v)

Arguments

n
number of random values to return.
lam
first shape parameter.
sc
scale parameter.
v
second shape parameter.

Value

  • The generated random values.

Details

See Sarabia and Prieto (2009) for the description of the generating process.

References

Sarabia, J.M and Prieto, F. (2009). The Pareto-positive stable distribution: A new descriptive model for city size data, Physica A: Statistical Mechanics and its Applications, 388(19), 4179-4191.

See Also

dPPS for the density function, pPPS for the cumulative distribution function, qPPS for the quantile function and hPPS for the hazard function.

Examples

Run this code
print(x <- sort(rPPS(10, 1.2, 100, 2.3)))
dPPS(x, 1.2, 100, 2.3)
pPPS(x, 1.2, 100, 2.3)
qPPS(pPPS(x, 1.2, 100, 2.3), 1.2, 100, 2.3)
hPPS(x, 1.2, 100, 2.3)

Run the code above in your browser using DataLab