Re: Help with VIF calculation in regression
- From: shiling99@xxxxxxxxx
- Date: 26 Oct 2005 19:07:24 -0700
VIFk = 1/(1-Rk**2)
where Rk**2 or Rk square is the R-square of Xk on all other variables.
So it should not be a negative number.
VIF=10 which implies R-square = 0.9.
Another measure is condition number that is defined as
C.N.=square root of (max eigenvalue/min eigenvalue) of moment
matrix (X'X)
Usually C.N >20 indicates some collinear problems.
If you have SAS software, here is an example.
data test;
do j=1 to 100;
x1=rannor(1);
x2=x1 + rannor(1);
x3=6*x1 + rannor(1);
y=x1+x2++x3+3*rannor(1);
output;
end;
keep j x: y;
run;
proc reg data=test;
model y=x1 x2 x3/vif COLLIN;
quit;
HTH
.
- Follow-Ups:
- Re: Help with VIF calculation in regression
- From: dfc@xxxxxxxxxxxxxxxx
- Re: Help with VIF calculation in regression
- References:
- Help with VIF calculation in regression
- From: dfc@xxxxxxxxxxxxxxxx
- Help with VIF calculation in regression
- Prev by Date: Re: From Poisson to standard gamma
- Next by Date: Re: Transforming ratios
- Previous by thread: Re: Help with VIF calculation in regression
- Next by thread: Re: Help with VIF calculation in regression
- Index(es):