Learn R Programming

VGAM (version 0.9-6)

Inv.lomax: The Inverse Lomax Distribution

Description

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

Usage

dinv.lomax(x, scale = 1, shape2.p, log = FALSE)
pinv.lomax(q, scale = 1, shape2.p)
qinv.lomax(p, scale = 1, shape2.p)
rinv.lomax(n, scale = 1, shape2.p)

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.
shape2.p
shape parameter.
scale
scale parameter.
log
Logical. If log = TRUE then the logarithm of the density is returned.

Value

  • dinv.lomax gives the density, pinv.lomax gives the distribution function, qinv.lomax gives the quantile function, and rinv.lomax generates random deviates.

Details

See inv.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, USA: Wiley-Interscience.

See Also

inv.lomax, genbetaII.

Examples

Run this code
idata <- data.frame(y = rinv.lomax(n = 1000, exp(2), exp(1)))
fit <- vglm(y ~ 1, inv.lomax, data = idata, trace = TRUE, crit = "coef")
coef(fit, matrix = TRUE)
Coef(fit)

Run the code above in your browser using DataLab