Skip to contents

Computes variance inflation factors for all variables in a data frame and returns them in a tidy format, sorted by VIF in descending order.

Usage

.vif_to_df(x)

Arguments

x

Data frame with numeric predictors for which to compute VIF values.

Value

Data frame with two columns: variable (character, variable names) and vif (numeric, VIF scores), sorted by VIF in descending order.