Skip to contents

Return model variables.

Usage

ols_get_variables(model)

Arguments

model

An object of class lm.

Value

List with response and predictors.

Examples

model <- lm(mpg ~ wt + cyl * hp * disp + gear * drat, data = mtcars)
ols_get_variables(model)
#> $response
#> [1] "mpg"
#> 
#> $predictors
#> [1] "wt"   "cyl"  "hp"   "disp" "gear" "drat"
#>