GVIF: Compute Generalized Variance Inflation Factor (GVIF)

View source: R/helper.R

GVIFR Documentation

Compute Generalized Variance Inflation Factor (GVIF)

Description

Calculates GVIF for model terms to detect multicollinearity. Adapted from the car package.

Usage

GVIF(model)

Arguments

model

Fitted model object (lm, glm, coxph, etc.)

Details

For terms with degrees of freedom > 1 (e.g., factor variables), returns GVIF^(1/(2*df)) for comparability with standard VIF.

Value

Data frame with columns: Covariate (term name) and VIF (value)

References

Fox, J. and Weisberg, S. (2019). An R Companion to Applied Regression, Third Edition. Thousand Oaks CA: Sage.


reportRmd documentation built on March 20, 2026, 5:06 p.m.