[R] vif function using lm object

Liviu Andronic landronimirc at gmail.com
Fri Dec 23 18:53:16 CET 2011

On Wed, Dec 21, 2011 at 9:28 AM, arunkumar1111 <akpbond007 at gmail.com> wrote:
> Hi,
>   can anyone please explain why the vif should have more than 2 terms.
> *vif.lm(lmobj) : model contains fewer than 2 terms*
> why it is throwng error if it is one variable.
The _VIF_ is a measure of _multicollinearity_, which occurs between
two or more predictors in a regression model. In other words, you
cannot have collinearity in a single predictor.

Also, to compute the VIF you need to regress one regressor on all the
remaining regressors. If you have a single regressor, then you cannot
estimate a VIF.

See the related articles on Wikipedia.


> -----
> Thanks in Advance
>        Arun
> --
> View this message in context: http://r.789695.n4.nabble.com/vif-function-using-lm-object-tp4220904p4220904.html
> Sent from the R help mailing list archive at Nabble.com.
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

Do you know how to read?
Do you know how to write?

More information about the R-help mailing list