Hi again,
I'm encountering a problem using -chowtest-. I'm running two xtreg regressions with firm and year F.E., one subsample with high dummy ==1, the other with high dummy ==0. I'm using -chowtest- because -suest- doesn't support -xtreg-, so I can't use -test- or -lincom- afterwards.
I get the following error message
I think what stata means "too many levels" is that I control for firm F.E., and indeed if I delete i.firm, it works. With the two-way F.E. model, I need both firm and year F.E., I wonder what can I do to make it work? Thanks!
I'm encountering a problem using -chowtest-. I'm running two xtreg regressions with firm and year F.E., one subsample with high dummy ==1, the other with high dummy ==0. I'm using -chowtest- because -suest- doesn't support -xtreg-, so I can't use -test- or -lincom- afterwards.
Code:
chowtest y x cotrols i.firm i.year, group(high)
Code:
maxvar too small You have attempted to use an interaction with too many levels or attempted to fit a model with too many variables. You need to increase maxvar; it is currently 5000. Use set maxvar; see help maxvar. If you are using factor variables and included an interaction that has lots of missing cells, try set emptycells drop to reduce the required matrix size; see help set emptycells. If you are using factor variables, you might have accidentally treated a continuous variable as a categorical, resulting in lots of categories. Use the c. operator on such variables. r(907);
Comment