Description Usage Arguments Value
This function fits an OLS model that optimizes BIC or AIC based on provided data.
1 | best_model(y, x, crit = "BIC", quick = FALSE)
|
y |
A one-dimensional dataframe with the desired dependent variable |
x |
A multi-dimensional dataframe with desired indepdent variables to be considered |
crit |
Which criterion should the model optimize? |
quick |
If TRUE, uses exhaustive search. If FALSE, uses stepwise search. |
An lm object of the "best model"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.