best_model: "Best Model" Procedure, OLS Subset Selection

Description Usage Arguments Value

View source: R/best_model.R

Description

This function fits an OLS model that optimizes BIC or AIC based on provided data.

Usage

1
best_model(y, x, crit = "BIC", quick = FALSE)

Arguments

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.

Value

An lm object of the "best model"


davidwig/csm documentation built on Dec. 19, 2021, 9:09 p.m.