Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[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" <>
To   <>
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

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

Is this right?

*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index