Learn R Programming

regrrr (version 0.1.3)

check_vif: quickly check the vifs in a regression model; for checking multi-collinearity

Description

quickly check the vifs in a regression model; for checking multi-collinearity

Usage

check_vif(data)

Arguments

data

a data.frame used in regression model

Examples

Run this code
# 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