
## S3 method for class 'lme':
AIC(object, ..., k)
data.frame
with rows corresponding to the objects and
columns representing the number of parameters in the model
(df
) and the AIC.logLik
, BIC
, AIC.logLik
data(Orthodont)
fm1 <- lm(distance ~ age, data = Orthodont) # no random effects
AIC(fm1)fm2 <- lme(distance ~ age, data = Orthodont) # random is ~age
AIC(fm1, fm2)
Run the code above in your browser using DataLab