Returns the coefficients for each variable from each model.

ols_all_subset_betas(object, ...)

Arguments

object

An object of class lm.

...

Other arguments.

Value

ols_all_subset_betas returns a tibble containing:

model_index

model number

predictor

predictor

beta_coef

coefficient for the predictor

Examples

# NOT RUN {
model <- lm(mpg ~ disp + hp + wt, data = mtcars)
ols_all_subset_betas(model)
# }