Akaike Information Criteria

aic(model, method = c("R", "STATA", "SAS"))

Arguments

model
an object of class lm
method
a character vector; specify the method to compute AIC. Valid options include R, STATA and SAS

Value

Akaike Information Criteria

Examples

# using R computation method model <- lm(mpg ~ disp + hp + wt + qsec, data = mtcars) aic(model)
#> [1] 159.0696
# using STATA computation method model <- lm(mpg ~ disp + hp + wt + qsec, data = mtcars) aic(model, method = 'STATA')
#> [1] 157.0696
# using SAS computation method model <- lm(mpg ~ disp + hp + wt + qsec, data = mtcars) aic(model, method = 'SAS')
#> [1] 66.2575