Maximum likelihood estimation of the 3-parameter generalized beta distribution as proposed by Libby and Novick (1982).
lino(lshape1 = "loglink", lshape2 = "loglink", llambda = "loglink",
ishape1 = NULL, ishape2 = NULL, ilambda = 1, zero = NULL)
Parameter link functions applied to the two
(positive) shape parameters Links
for more choices.
Parameter link function applied to the
parameter Links
for more choices.
Initial values for the parameters. A NULL
value means
one is computed internally. The argument ilambda
must
be numeric, and the default corresponds to a standard beta distribution.
Can be an integer-valued vector specifying which
linear/additive predictors are modelled as intercepts only.
Here, the values must be from the set {1,2,3} which correspond to
CommonVGAMffArguments
for more information.
An object of class "vglmff"
(see vglmff-class
).
The object is used by modelling functions such as vglm
,
and vgam
.
Proposed by Libby and Novick (1982),
this distribution has density
beta
).
The mean is a complicated function involving the Gauss hypergeometric
function.
If lino
distribution with parameters
shape1
, shape2
, lambda
, then
shape1
,
shape2
.
Since summary
of the fitted model performs a
t-test for whether the data belongs to a standard beta distribution
(provided the loglink
link for
Libby, D. L. and Novick, M. R. (1982). Multivariate generalized beta distributions with applications to utility assessment. Journal of Educational Statistics, 7, 271--294.
Gupta, A. K. and Nadarajah, S. (2004). Handbook of Beta Distribution and Its Applications, NY: Marcel Dekker, Inc.
# NOT RUN {
ldata <- data.frame(y1 = rbeta(n = 1000, exp(0.5), exp(1))) # ~ standard beta
fit <- vglm(y1 ~ 1, lino, data = ldata, trace = TRUE)
coef(fit, matrix = TRUE)
Coef(fit)
head(fitted(fit))
summary(fit)
# Nonstandard beta distribution
ldata <- transform(ldata, y2 = rlino(n = 1000, shape1 = exp(1),
shape2 = exp(2), lambda = exp(1)))
fit2 <- vglm(y2 ~ 1, lino(lshape1 = "identitylink", lshape2 = "identitylink",
ilamb = 10), data = ldata, trace = TRUE)
coef(fit2, matrix = TRUE)
# }
Run the code above in your browser using DataLab