VIF
Variance Inflation Factors
Calculates varianceinflation and generalized varianceinflation factors for linear and generalized linear models.
 Keywords
 regression
Usage
VIF(mod, ...)
Arguments
 mod
 an object that responds to
coef
,vcov
, andmodel.matrix
, such as anlm
orglm
object.  ...
 not used.
Details
If all terms in an unweighted linear model have 1 df, then the usual varianceinflation factors are calculated.
The vif are defined as $$vif_j=\frac{1}{1R_j^2}$$
where $R_j^2$ equals the coefficient of determination for regressing the explanatory variable j
in question on the other terms in the model. This is one of the wellknown collinearity diagnostics.
If any terms in an unweighted linear model have more than 1 df, then generalized varianceinflation factors (Fox and Monette, 1992) are calculated. These are interpretable as the inflation in size of the confidence ellipse or ellipsoid for the coefficients of the term in comparison with what would be obtained for orthogonal data.
The generalized vifs are invariant with respect to the coding of the terms in the model (as long as the subspace of the columns of the model matrix pertaining to each term is invariant). To adjust for the dimension of the confidence ellipsoid, the function also prints $GVIF^[1/(2*df)]$ where $df$ is the degrees of freedom associated with the term.
Through a further generalization, the implementation here is applicable as well to other sorts of models, in particular weighted linear models and generalized linear models.
Values of vif up to 5 are usually interpreted as uncritical, values above 5 denote a considerable multicollinearity.
Value

A vector of vifs, or a matrix containing one row for each term in the model, and
columns for the GVIF, df, and $GVIF^[1/(2*df)]$.
Note
This is a verbatim copy from the function car::vif
.
References
Fox, J. and Monette, G. (1992) Generalized collinearity diagnostics. JASA, 87, 178183.
Fox, J. (2008) Applied Regression Analysis and Generalized Linear Models, Second Edition. Sage.
Fox, J. and Weisberg, S. (2011) An R Companion to Applied Regression, Second Edition, Sage.
Examples
VIF(lm(Fertility ~ Agriculture + Education, data=swiss))
VIF(lm(Fertility ~ ., data=swiss))