Learn R Programming

VGAM (version 0.9-0)

Fisk: The Fisk Distribution

Description

Density, distribution function, quantile function and random generation for the Fisk distribution with shape parameter a and scale parameter scale.

Usage

dfisk(x, shape1.a, scale = 1, log = FALSE)
pfisk(q, shape1.a, scale = 1)
qfisk(p, shape1.a, scale = 1)
rfisk(n, shape1.a, scale = 1)

Arguments

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

Value

  • dfisk gives the density, pfisk gives the distribution function, qfisk gives the quantile function, and rfisk generates random deviates.

Details

See fisk, 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

fisk, genbetaII.

Examples

Run this code
fdata = data.frame(y = rfisk(n = 1000, 4, 6))
fit = vglm(y ~ 1, fisk, data = fdata, trace = TRUE, crit = "coef")
coef(fit, matrix = TRUE)
Coef(fit)

Run the code above in your browser using DataLab