data(
vi,
vi_predictors_numeric
)
#subset to limit run time
df <- vi[1:1000, ]
#apply pairwise correlation first
selection <- cor_select(
df = df,
predictors = vi_predictors_numeric,
quiet = TRUE
)
#VIF data frame
df <- vif_df(
df = df,
predictors = selection
)
df
Run the code above in your browser using DataLab