Hi all,
I'm going to do oaxaca decomposition with the fixed effect estimators
in a panel data set. I haven't done this before, so I'll appreciate if
you let me know any problem in my following commands. It'll be great if
there's easier way to deal with this.
Thanks for your help!
-----------------------------------------------------------------
***model y[i,t] = B*x[i,t] + u[i] +t + e[i,t]
. xtreg y x,few
. predict y_demean ,xb
***x_demean =y[i,t]-mean of y[i,t]
***x_demean is the created variable =x[i,t]-mean of x[i,t]
. oaxaca y_demean x_demean
-----------------------------------------------------------------
Thank you very much! I really appreciate it.
Regards,
Mandy
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/