3
$\begingroup$

I have problems regarding analyzing dummy variable using fixed effects in Stata. I am doing research on impact of climate change in food grain production.

Much previous literature states that panel data use fixed effect regarding this types of analysis, as others I also follow the same things but I have to take soil variable as dummy due to certain reason. When I run xtreg with fixed effect all the dummy variables are dropped by Stata where remaining other values are given.

$\endgroup$
0

1 Answer 1

6
$\begingroup$

Do your dummy varibales vary over time or are they constant within each panel? In a fixed-effects model only time-varying variables can be used, the time invariant variables are droppped. This should be explained in your favourite (econometrics) textbook.

If you are interested in these invariant variables, you have two possibilities. If you think that the assumptions for a random effects model hold, you can go that way. In Stata, this kind of model is estimated by xtreg with the re option:

xtreg y x1 x2 x3, re  

If you are not happy with the assumptions of the random effects model, you can also have a look at the Hausmann-Taylor estimator. In Stata, this estimator is implemented in the xthtaylor command.

$\endgroup$
1
  • $\begingroup$ "This should be explained in your favourite (econometrics) textbook." -- these textbooks will also discuss the use of conditional logit (xtlogit) $\endgroup$
    – Keith
    Sep 8, 2011 at 20:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.