Last chance! 50% off unlimited learning
Sale ends in
AICvlm(object, ..., k = 2)
vglmff-class
.logLik
in order to compute the log-likelihood.k
).AIC
for the VGLM/VGAM classes
has not been developed fully.
In particular, AIC
should not be run on some This code relies on the log-likelihood being defined, and computed, for the object. When comparing fitted objects, the smaller the AIC, the better the fit. The log-likelihood and hence the AIC is only defined up to an additive constant.
Any estimated scale parameter (in GLM parlance) is used as one parameter.
For VGAMs the nonlinear effective degrees of freedom for each smoothed component is used. This formula is heuristic.
vglm-class
;
VGAMs are described in vgam-class
;
RR-VGLMs are described in rrvglm-class
;
AIC
.pneumo = transform(pneumo, let=log(exposure.time))
(fit1 <- vglm(cbind(normal, mild, severe) ~ let,
cumulative(parallel=TRUE, reverse=TRUE), pneumo))
coef(fit1, matrix=TRUE)
AIC(fit1)
(fit2 <- vglm(cbind(normal, mild, severe) ~ let,
cumulative(parallel=FALSE, reverse=TRUE), pneumo))
coef(fit2, matrix=TRUE)
AIC(fit2)
Run the code above in your browser using DataLab