select_optimal_model | R Documentation |
Choosing Best Model Based on AIC, BIC and Adjusted R Squared
select_optimal_model(models, criterion = "AIC")
models |
a list of models |
criterion |
The criterion to select optimal model. Default AIC |
list of the results and best model
Mutua Kilai
data(eduperform)
model1 <- lm(pi ~ hs, data = eduperform)
model2 <- lm(pi ~ hs + ps, data = eduperform)
model3 <- lm(pi ~ hs + ps + sh, data = eduperform)
models <- list(model1, model2, model3)
select_optimal_model(models, criterion= "AIC")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.