Variance inflation factors
vif.Rd1 / (1 - R2_j) for each column of the design of formula, with R2_j
that of column j regressed on the others and an intercept (CAS
Monograph 5, section 2.9; car::vif for single-column terms). The
intercept gets NA.
Examples
d <- data.frame(y = 1:6, x = c(1, 2, 3, 4, 5, 7), z = c(2, 1, 4, 3, 6, 5))
vif(y ~ x + z, d)
#> (Intercept) x z
#> NA 2.680525 2.680525