vif(lm(prestige~income+education, data=Duncan))
## income education
## 2.104900 2.104900
vif(lm(prestige~income+education+type, data=Duncan))
## GVIF Df GVIF^(1/2Df)
## income 2.209178 1 1.486330
## education 5.297584 1 2.301648
## type 5.098592 2 1.502666
Run the code above in your browser using DataLab