[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st:oaxaca decomposition after fixed effect analysis

From   Man Jia <[email protected]>
To   [email protected]
Subject   st:oaxaca decomposition after fixed effect analysis
Date   Mon, 8 Sep 2008 13:27:25 -0400 (EDT)

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.

*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index