fiskUC.RdDensity, distribution function, quantile function and random
generation for the Fisk distribution with
shape parameter a
and scale parameter 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,
pfisk gives the distribution function,
qfisk gives the quantile function, and
rfisk generates random deviates.
Kleiber, C. and Kotz, S. (2003). Statistical Size Distributions in Economics and Actuarial Sciences, Hoboken, NJ, USA: Wiley-Interscience.
See fisk, which is the VGAM family function
for estimating the parameters by maximum likelihood estimation.
The Fisk distribution is a special case of the 4-parameter generalized beta II distribution.
fdata <- data.frame(y = rfisk(1000, shape = exp(1), scale = exp(2)))
fit <- vglm(y ~ 1, fisk(lss = FALSE), data = fdata, trace = TRUE)
#> Iteration 1: loglikelihood = -3000.4693
#> Iteration 2: loglikelihood = -3000.468
#> Iteration 3: loglikelihood = -3000.468
coef(fit, matrix = TRUE)
#> loglink(shape1.a) loglink(scale)
#> (Intercept) 0.9760105 1.980175
Coef(fit)
#> shape1.a scale
#> 2.653848 7.244009