Hello,
I am doing a very basic Difference in Difference. I get my results for the DD fine, but for my paper I need to use a graph to show the same parallel trends. my treated country is Georgia, my control country is Armenia, my data set has the years from 1997 to 2008, with time by quarter. My treatment period starts in 2003.
my basic code is as follows.
gen time = (Year>2003.3) & !missing(Year)
egen countrynum = group(Country)
gen treated =(countrynum<2) & !missing(countrynum)
gen did = time*treated
reg FDI time treated did
my question is how can I go about creating the graph for the DD to show parallel trends?
Thank you so much in advance I have been stuck on this for days!
Related Posts with Simple parallel trends for Difference in Difference
-domin- (SSC): computing time /max. number of independent variablesHi everybody, I am using Stata 16.0 and I am trying to perform dominance analysis using the -domin-…
Deflate wages with deflator from different fileHello, I need to deflate my wages with a consumer price index which I have in a different file. How…
How to create a percentage variableHello, I have a categorical variable for ethnicity. When I tabulate it I can see that there are pe…
Using "lincom" after "margins"Hello. I have a question with respect to using the lincom command after the margins command. Specif…
Panel Data - treatment*for group data based on within group characteristicsHello, I am interested in assigning a treatment to a firm if it was domestic (foreign=0) in year 20…
Subscribe to:
Post Comments (Atom)
0 Response to Simple parallel trends for Difference in Difference
Post a Comment