Learn R Programming

VGAM (version 0.8-1)

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, a, scale=1, log=FALSE)
pfisk(q, a, scale=1)
qfisk(p, a, scale=1)
rfisk(n, 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.
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: Wiley-Interscience.

See Also

fisk, genbetaII.

Examples

Run this code
y = rfisk(n=1000, 4, 6)
fit = vglm(y ~ 1, fisk, trace=TRUE, crit="c")
coef(fit, mat=TRUE)
Coef(fit)

Run the code above in your browser using DataLab