ols_step_all_possible_betas: All possible regression variable coefficients

View source: R/ols-all-possible-regression.R

ols_step_all_possible_betasR Documentation

All possible regression variable coefficients

Description

Returns the coefficients for each variable from each model.

Usage

ols_step_all_possible_betas(object, ...)

Arguments

object

An object of class lm.

...

Other arguments.

Value

ols_step_all_possible_betas returns a data.frame 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_step_all_possible_betas(model)

## End(Not run)


olsrr documentation built on May 29, 2024, 12:35 p.m.