Skip to contents

Extract AIC from a Fitted Model

Usage

# S3 method for class 'fastlmm'
extractAIC(fit, scale = 0, k = 2, ...)

Arguments

fit

fitted model of class fastlmm

scale

not used

k

numeric specifying the weight of the _equivalent degrees of freedom_ (=: edf) part in the AIC formula.

...

other args, not used

Examples

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