Evaluate Akaike's information criterion (AIC) for the specified submodels.
# 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)
"lmSubsets", "lmSelect"---a subset
regression
integer[]---the submodel sizes
integer[]---the submodel positions
ignored
double---the penalty per model parameter
logical---if TRUE, remove NA
entries
logical---if TRUE, simplify structure
double[]---the AIC values
lmSubsets() for all-subsets
regression
lmSelect() for best-subset
regression
AIC() for the S3 generic