Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 73259

About areg command for fixed effects

$
0
0
Hi.
I have a question about areg command for fixed effects.

areg y x1, absorb(x2)
predict x2_fixed, d

Using above command, I can get coefficients (fixed effects) of x2.

If I run this command:

reg y x1 i.x2

the first one is omitted. That is, if x2 is a five categorical variable, the number of estimated coefficients is four.
However, if I use areg and predict command, I can get all five coefficients.

How are they calculated?

Thanks











Viewing all articles
Browse latest Browse all 73259

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>