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 with treatment in different periods
From
Francisco Javier Henriquez Palacios <[email protected]>
To
"'[email protected]'" <[email protected]>
Subject
st: diff-in-diff with treatment in different periods
Date
Mon, 11 Nov 2013 17:36:16 +0000
I have a base with treatment in different period (months) and I have observation for the controls for the same periods and I want to use diff-in-diff . My base looks like the example: the three first individuals are controls ant the last three have a treatment but in different periods (months) and in some cases they have two treatment (4 and 6).
How can I do that
month id treat
1 1 0
1 2 0
1 3 0
1 4 0
1 5 0
1 6 0
2 1 0
2 2 0
2 3 0
2 4 1
2 5 0
2 6 0
3 1 0
3 2 0
3 3 0
3 4 0
3 5 1
3 6 0
4 1 0
4 2 0
4 3 0
4 4 0
4 5 0
4 6 1
5 1 0
5 2 0
5 3 0
5 4 1
5 5 0
5 6 1
Thanks
Francisco
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/