Learn R Programming

robmixglm (version 1.2-5)

extractAIC: Extract AIC from a Fitted Model

Description

Computes the (generalized) AIC for a fitted robmixglm model. Used in step, otherwise use AIC.

Usage

# S3 method for robmixglm
extractAIC(fit,  scale,  k  =  2,  ...)

Arguments

fit

fitted robmixglm model.

scale

ignored.

k

numeric specifying the ‘weight’ of the equivalent degrees of freedom (\(\equiv\) edf) part in the AIC formula.

...

further arguments (currently unused).

Author

Ken Beath

See Also

Examples

Run this code
# \donttest{
library(MASS)
data(forbes)
forbes.robustmix <- robmixglm(bp~pres, data = MASS::forbes, cores = 1)
extractAIC(forbes.robustmix)
# }

Run the code above in your browser using DataLab