vif function using lm object
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