ols_prep_regress_y: Regress y on other predictors

Description Usage Arguments Examples

Description

Regress y on all the predictors except the ith predictor.

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_y(data, 1)

cmlopera/olsrr documentation built on May 26, 2019, 10:34 a.m.