F(x) = 1 / (1 + (x/scale)^(-shape)), x > 0.
Density, distribution function, quantile and draws by inversion of the
morie Philox uniforms (identical in the Python arm).
Usage
FiskDist(x = NULL, shape = NULL, scale = 1, p = NULL, n = 0, seed = 0)
Arguments
- x
Evaluation points.
- shape
Parameter (required).
- scale
Parameter.
- p
Probabilities for the quantile function.
- n
Number of random draws.
- seed
Philox seed.
Value
list(pdf, logpdf, cdf, quantile, random).
References
Fisk, P. R. (1961). The graduation of income distributions. Econometrica 29, 171-185.
Examples
FiskDist(0.5, shape = 2)$cdf
#> [1] 0.2