Learn R Programming

lmSubsets (version 0.5-2)

AIC.lmSubsets: Extract AIC values from a subset regression

Description

Evaluate Akaike's information criterion (AIC) for the specified submodels.

Usage

# S3 method for lmSubsets
AIC(object, size, best = 1, ..., k = 2, na.rm = TRUE, drop = TRUE)

# S3 method for lmSelect AIC(object, best = 1, ..., k = 2, na.rm = TRUE, drop = TRUE)

Arguments

object

"lmSubsets", "lmSelect"---a subset regression

size

integer[]---the submodel sizes

best

integer[]---the submodel positions

...

ignored

k

double---the penalty per model parameter

na.rm

logical---if TRUE, remove NA entries

drop

logical---if TRUE, simplify structure

Value

double[]---the AIC values

See Also