Learn R Programming

VGAM (version 0.8-1)

Lomax: The Lomax Distribution

Description

Density, distribution function, quantile function and random generation for the Lomax distribution with scale parameter scale and shape parameter q.

Usage

dlomax(x, scale=1, q.arg, log=FALSE)
plomax(q, scale=1, q.arg)
qlomax(p, scale=1, q.arg)
rlomax(n, scale=1, q.arg)

Arguments

x, q
vector of quantiles.
p
vector of probabilities.
n
number of observations. If length(n) > 1, the length is taken to be the number required.
q.arg
shape parameter.
scale
scale parameter.
log
Logical. If log=TRUE then the logarithm of the density is returned.

Value

  • dlomax gives the density, plomax gives the distribution function, qlomax gives the quantile function, and rlomax generates random deviates.

Details

See lomax, which is the VGAM family function for estimating the parameters by maximum likelihood estimation.

References

Kleiber, C. and Kotz, S. (2003) Statistical Size Distributions in Economics and Actuarial Sciences, Hoboken, NJ: Wiley-Interscience.

See Also

lomax, genbetaII.

Examples

Run this code
y = rlomax(n=2000, 6, 2)
fit = vglm(y ~ 1, lomax(init.q=2.1), trace=TRUE, crit="c")
coef(fit, mat=TRUE)
Coef(fit)

Run the code above in your browser using DataLab