Skip to content
Back to formatted view

Raw Message

Message-ID: <CABxs9VmP81u8JPfrcNfqrdT2sJTf6Q0N9ALw6FjkC0uBObN-8A@mail.gmail.com>
Date: 2011-12-23T17:53:16Z
From: Liviu Andronic
Subject: vif function using lm object
In-Reply-To: <1324456135388-4220904.post@n4.nabble.com>

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.

Regards
Liviu



>
>
>
> -----
> 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?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail