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
Graph dot: General DoubtHello I want to make a comparative graph between the results that I have. There are four variables …
Graphic layers /twoway): points and linesHello, I want to make a graph that puts lines ("ylines", "xlines") in front of the points produced …
Loop to generate dummies indicating maximum values within each groupDear all, I am trying to generate a loop to create dummy variables for maximum values of a variable…
Comparing coefficients across logit modelsHi all, I've developed a logit model to be applied to three different sets of cross-sectional data(t…
Categorical variable and the constantHello! Please bare with me for this question. I'm a STATA novice and have just begun learning about …
Subscribe to:
Post Comments (Atom)
0 Response to Simple parallel trends for Difference in Difference
Post a Comment