lifecycle::badge("maturing")
Add the variance inflation factor (VIF) or
generalized VIF (GVIF) to the regression table.
Function uses car::vif() to calculate the VIF.
add_vif(x, statistic = NULL, estimate_fun = NULL)'tbl_regression' object
"VIF" (variance inflation factors, for models with no categorical terms) or one of/combination of "GVIF" (generalized variance inflation factors), "aGVIF" 'adjusted GVIF, i.e. GVIF^[1/(2*df)] and/or "df" (degrees of freedom).
See car::vif() for details.
Default is style_sigfig().
Example 1

Example 2

Review list, formula, and selector syntax used throughout gtsummary