powered by
quickly check the vifs in a regression model; for checking multi-collinearity
check_vif(data)
a data.frame used in regression model
# NOT RUN { data(mtcars) model <- lm(mpg ~ vs + carb + hp + wt + wt * hp , data = mtcars) check_vif(data = model$model) # }
Run the code above in your browser using DataLab