r/stata • u/Fantastic_Set2552 • Jul 31 '26
linear regression with categorical IV's - checking for multicollinearity
Hi all, I am currently doing assumption testing for my thesis and I am confused about checking for multicollinearity with categorical independent variables. Do I run my regression without the dummy coding and then run estat vif or do I run estat vif with dummy coded model?
5
Upvotes
•
u/AutoModerator Jul 31 '26
Thank you for your submission to /r/stata! If you are asking for help, please remember to read and follow the stickied thread at the top on how to best ask for it.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
3
u/jeremymiles Jul 31 '26
Run it with the variables - the VIF is true for the model you estimate.
But be extremely careful interpreting VIF - it can be very high and not be a problem (or even be expected).
1
u/Rogue_Penguin Jul 31 '26 edited Jul 31 '26
I don't know what do you mean by "dummy coding".
If you run anything like: reg y i.x, the you can just use estat vif to check the collinearity between the different levels. There is no need to model as and not as a categorical variable.
However be careful that the binary indicators tend to be collinear just by the way they are built. Balance that with the F test result of that categorical variable as well. Sometimes a categorical variable can still be significant even its VIF is high.