Density, distribution function, quantile function, raw moments and random generation for the Burr distribution, also known as the Burr Type XII distribution or the Singh-Maddala distribution.
shape1, shape2, scale: Shape1, shape2 and scale of the Burr distribution, defaults to 2, 1 and 0.5.
log, log.p: logical; if TRUE, probabilities p are given as log(p).
lower.tail: logical; if TRUE (default), probabilities (moments) are P[X≤x](E[xr∣X≤y]), otherwise, P[X>x](E[xr∣X>y])
p: vector of probabilities
r: rth raw moment of the distribution
truncation: lower truncation parameter
n: number of observations
Returns
dburr returns the density, pburr the distribution function, qburr the quantile function, mburr the rth moment of the distribution and rburr generates random deviates.
The length of the result is determined by n for rburr, and is the maximum of the lengths of the numerical arguments for the other functions.
## Burr densityplot(x = seq(0,5, length.out =100), y = dburr(x = seq(0,5, length.out =100)))plot(x = seq(0,5, length.out =100), y = dburr(x = seq(0,5, length.out =100), shape2 =3))## Demonstration of log functionality for probability and quantile functionqburr(pburr(2, log.p =TRUE), log.p =TRUE)## The zeroth truncated moment is equivalent to the probability functionpburr(2)mburr(truncation =2)## The (truncated) first moment is equivalent to the mean of a#(truncated) random sample, for large enough samples.x <- rburr(1e5, shape2 =3)mean(x)mburr(r =1, shape2 =3, lower.tail =FALSE)sum(x[x > quantile(x,0.1)])/ length(x)mburr(r =1, shape2 =3, truncation = quantile(x,0.1), lower.tail =FALSE)