Hi,
I am new to this forum, had hard time figuring out how this could be done in SAS.
The code I am trying to run, regression analysis looks something like this:
Proc reg data = work.temp;
Model &Pred_var = &independent_var / stb tol vif Collin;
By segment;
Run;
I want to run a regression model such that it produces VIF values for each of the by Groups and checks the value of VIF.
Based on the value of VIF I should be able to Print if the regression model has collinearity(VIF > =5) or not(VIF <5).
And if there is collinearity then I should be able to give a rough idea of which variables might be correlated.
Your suggestions would be highly appreciated.
Thank you,
L.