Learn R Programming

olsrr (version 0.4.0)

ols_all_subset_betas: All Possible Regression Variable Coefficients

Description

Returns the coefficients for each variable from each model

Usage

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

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

Run the code above in your browser using DataLab