I'm running a fixed effects model. My independent variable is store presence, and one of my dependent variables, i.county
, measures county fixed effects.
I use xi: regress store_presence i.county other_var othervar2
where county
is the US county code, a string variable.
But the regression output reports that some variables "have been omitted due to collinearity".
What should I do to fix this error and capture county-fixed effects in my model?
xi
has been replaced by explicit support for factor variables since Stata 11) and numerically cumbersome (usextreg, fe
orareg
instead). Lastly, omission of variables is not an error, but intended behavior when the design matrix is singular. You need to fix this by making sure that your regression is well-specified. $\endgroup$