powered by
Regress y on all the predictors except the ith predictor.
ols_prep_regress_y(data, i)
A data.frame.
data.frame
A numeric vector (indicates the predictor in the model).
model <- lm(mpg ~ disp + hp + wt, data = mtcars) data <- ols_prep_avplot_data(model) ols_prep_regress_y(data, 1)
Run the code above in your browser using DataLab