Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Diff-in-diff of panel data in multi-periods


From   "Heekyung \"Hellen\" Kim" <[email protected]>
To   <[email protected]>
Subject   st: Diff-in-diff of panel data in multi-periods
Date   Mon, 31 Oct 2011 10:02:50 -0400

I am using a diff-in-diff method for panel data.  Is the following the right
specification?

treat is a binary; 1 for treated period and treated samples and 0 otherwise
after_treat is a binary; 1 for the period after treatment year, 0 for the
period before treatment year
group: individual samples were in different groups.


gen txa=treat * after_treat

xtreg y treat after_treat txa i.year i.group

Is this right?

*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index