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
asdfasdf …
Too many variables in loopHello I am using the loop function for some simple merges of 5 datasets. I did it before and it work…
Save F-stat from first stage to tableHi all, I have to perform some regressions like Code: quietly ivregress 2sls dep (indep=instrument…
Is iweight command suitable for analyses on oversampled populations?Hello, I was hoping you may be able to advise on this I am running analyses on a simple exposure ou…
Categorical variables to ordinal for dummy variablesHi all, I am a first time user of Stata currently doing my thesis which is exciting but at the same …
Subscribe to:
Post Comments (Atom)
0 Response to Simple parallel trends for Difference in Difference
Post a Comment