AICc(object, ..., k = 2, REML = NULL)
logLik
method, or a logLik
objectk
=
2 is the classical AIC
logLik
method
indicating whether the restricted log-likelihood or log-likelihood should be
used. The default is to use the method used for model estimation.data.frame
with rows corresponding to the objects and columns
representing the number of parameters in the model (df) and AIC$_{c}$.Hurvich, C. M. and Tsai, C.-L. (1989) Regression and time series model selection in small samples, Biometrika 76: 297–307.
AIC
Other implementations:
AICc
in package AICc
in package aicc
in package
#Model-averaging mixed models
library(nlme)
data(Orthodont, package = "nlme")
# Fit model by REML
fm2 <- lme(distance ~ Sex*age, data = Orthodont,
random = ~ 1|Subject / Sex, method = "REML")
# Model selection: ranking by AICc using ML
ms2 <- dredge(fm2, trace=TRUE, rank="AICc", REML=FALSE)
(attr(ms2, "rank.call"))
# Get the models (fitted by REML, as in the global model)
fmList <- get.models(ms2, 1:4)
# Because the models originate from 'dredge(..., rank=AICc, REML=FALSE)',
# the default weights in 'model.avg' are ML based:
model.avg(fmList)
# same result
#model.avg(fmList, rank="AICc", rank.args = list(REML=FALSE))
# REML based weights
model.avg(fmList, rank="AICc", rank.args = list(REML=TRUE))
Run the code above in your browser using DataLab