Skip to contents

F(x) = (1 + (x/scale)^(-a))^(-p), x > 0. Density, distribution function, quantile and draws by inversion of the morie Philox uniforms (identical in the Python arm).

Usage

DagumDist(
  x = NULL,
  shape1a = NULL,
  shape2p = NULL,
  scale = 1,
  p = NULL,
  n = 0,
  seed = 0
)

Arguments

x

Evaluation points.

shape1a

Parameter (required).

shape2p

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

Dagum, C. (1977). A new model of personal income distribution. Economie Appliquee 30, 413-437.

Examples

DagumDist(0.5, shape1a = 2, shape2p = 2)$cdf
#> [1] 0.04