vif(mod, ...)
"vif"(mod, ...)
coef
, vcov
, and
model.matrix
, such as an lm
or glm
object.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.
vif(lm(prestige ~ income + education, data=Duncan))
vif(lm(prestige ~ income + education + type, data=Duncan))
Run the code above in your browser using DataCamp Workspace