R/s3methods.R
extractAIC.fastlmm.Rd
Extract AIC from a Fitted Model
# S3 method for class 'fastlmm' extractAIC(fit, scale = 0, k = 2, ...)
fitted model of class fastlmm
fastlmm
not used
numeric specifying the weight of the _equivalent degrees of freedom_ (=: edf) part in the AIC formula.
weight
edf
other args, not used
library(MASS) # GLMM via PQL fit <- fastglmm(y ~ trt + I(week > 2) + (1 | ID), family = binomial(), data = bacteria) extractAIC(fit) #> [1] 30.82029 1163.48647