ols_prep_regress_x: Regress predictor on other predictors

Description Usage Arguments Examples

View source: R/ols-plots-data.R

Description

Regress a predictor in the model on all the other predictors.

Usage

1

Arguments

data

A data.frame.

i

A numeric vector (indicates the predictor in the model).

Examples

1
2
3
model <- lm(mpg ~ disp + hp + wt, data = mtcars)
data <- ols_prep_avplot_data(model)
ols_prep_regress_x(data, 1)

olsrr documentation built on Feb. 10, 2020, 5:07 p.m.