ols_prep_regress_x {olsrr} | R Documentation |
Regress predictor on other predictors
Description
Regress a predictor in the model on all the other predictors.
Usage
ols_prep_regress_x(data, i)
Arguments
data |
A |
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_x(data, 1)
[Package olsrr version 0.6.0 Index]