ols_prep_regress_y: Regress y on other predictors

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

ols_prep_regress_yR Documentation

Regress y on other predictors

Description

Regress y on all the predictors except the ith predictor.

Usage

ols_prep_regress_y(data, i)

Arguments

data

A data.frame.

i

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

Examples

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


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