tidy_vif | R Documentation |
Quick and tidy-friendly adaptation of car's 'vif()'. Returns a dataframe with variance inflation, tolerance, and a flag identifying if either is beyond common cut-offs reflecting problematic input variables. Note that VIF is not particularly useful when looking at categorical predictors, and will often report high VIF if any categories with a small sample size exist.
tidy_vif(mod)
mod |
Input model to assess for variance inflation among predictors. |
Dataframe with model/term metrics.
## Not run:
mtcars |>
lm(mpg ~ .,
data = _) |>
tidy_vif()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.