powered by
Density, distribution function, quantile function and random generation for the Fisk distribution with shape parameter a and scale parameter scale.
a
scale
dfisk(x, scale = 1, shape1.a, log = FALSE) pfisk(q, scale = 1, shape1.a, lower.tail = TRUE, log.p = FALSE) qfisk(p, scale = 1, shape1.a, lower.tail = TRUE, log.p = FALSE) rfisk(n, scale = 1, shape1.a)
dfisk gives the density,
dfisk
pfisk gives the distribution function,
pfisk
qfisk gives the quantile function, and
qfisk
rfisk generates random deviates.
rfisk
vector of quantiles.
vector of probabilities.
number of observations. If length(n) > 1 then the length is taken to be the number required.
length(n) > 1
shape parameter.
scale parameter.
Logical. If log = TRUE then the logarithm of the density is returned.
log = TRUE
Same meaning as in pnorm or qnorm.
pnorm
qnorm
T. W. Yee and Kai Huang
See fisk, which is the VGAM family function for estimating the parameters by maximum likelihood estimation.
fisk
Kleiber, C. and Kotz, S. (2003). Statistical Size Distributions in Economics and Actuarial Sciences, Hoboken, NJ, USA: Wiley-Interscience.
fisk, genbetaII.
genbetaII
fdata <- data.frame(y = rfisk(1000, shape = exp(1), scale = exp(2))) fit <- vglm(y ~ 1, fisk(lss = FALSE), data = fdata, trace = TRUE) coef(fit, matrix = TRUE) Coef(fit)
Run the code above in your browser using DataLab