Regress predictor on other predictors
Regress a predictor in the model on all the other predictors.
ols_prep_regress_x(data, i)
data |
A |
i |
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_x(data, 1)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.