Learn R Programming

olsrr (version 0.6.0)

ols_step_all_possible_betas: All possible regression variable coefficients

Description

Returns the coefficients for each variable from each model.

Usage

ols_step_all_possible_betas(object, ...)

Value

ols_step_all_possible_betas returns a data.frame containing:

model_index

model number

predictor

predictor

beta_coef

coefficient for the predictor

Arguments

object

An object of class lm.

...

Other arguments.

Examples

Run this code
if (FALSE) {
model <- lm(mpg ~ disp + hp + wt, data = mtcars)
ols_step_all_possible_betas(model)
}

Run the code above in your browser using DataLab