
Last chance! 50% off unlimited learning
Sale ends in
Estimates the two parameters of the Kumaraswamy distribution by maximum likelihood estimation.
kumar(lshape1 = "loglink", lshape2 = "loglink",
ishape1 = NULL, ishape2 = NULL,
gshape1 = exp(2*ppoints(5) - 1), tol12 = 1.0e-4, zero = NULL)
An object of class "vglmff"
(see vglmff-class
).
The object is used by modelling functions
such as vglm
and vgam
.
Link function for the two positive shape parameters,
respectively, called Links
for more choices.
Numeric. Optional initial values for the two positive shape parameters.
Numeric and positive. Tolerance for testing whether the second shape parameter is either 1 or 2. If so then the working weights need to handle these singularities.
Values for a grid search for the first shape parameter.
See CommonVGAMffArguments
for more information.
See CommonVGAMffArguments
.
T. W. Yee
The Kumaraswamy distribution has density function
Kumaraswamy, P. (1980). A generalized probability density function for double-bounded random processes. Journal of Hydrology, 46, 79--88.
Jones, M. C. (2009). Kumaraswamy's distribution: A beta-type distribution with some tractability advantages. Statistical Methodology, 6, 70--81.
dkumar
,
betaff
,
simulate.vlm
.
shape1 <- exp(1); shape2 <- exp(2)
kdata <- data.frame(y = rkumar(n = 1000, shape1, shape2))
fit <- vglm(y ~ 1, kumar, data = kdata, trace = TRUE)
c(with(kdata, mean(y)), head(fitted(fit), 1))
coef(fit, matrix = TRUE)
Coef(fit)
summary(fit)
Run the code above in your browser using DataLab