Bayesian Information Criteria

sbc(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

Bayesian Information Criteria

Examples

# using R computation method model <- lm(mpg ~ disp + hp + wt + qsec, data = mtcars) sbc(model)
#> [1] 167.864
# using STATA computation method model <- lm(mpg ~ disp + hp + wt + qsec, data = mtcars) sbc(model, method = 'STATA')
#> [1] 164.3983
# using SAS computation method model <- lm(mpg ~ disp + hp + wt + qsec, data = mtcars) sbc(model, method = 'SAS')
#> [1] 73.5862