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
Looping regression to determine one set of control variables that make models significantHi everyone, I have one dependent variable Y, four independent variables X1 X2 X3 X4, 12 control va…
How to get the start and end round of each user?Hi all, I need your help. I have a dataset with two variables: - Username - Round: Ordinal number o…
Pooled OLS, fixed & random effects: Panel DataHey everyone, (Data description is posted in the buttom) I'm currently writing by bachelor at Copenh…
Topic impact access to microfinancial institution for ensuring consumption because of health shock : omitted because of collinearityIam currently writing for my undergraduated thesis. I have large panel data in year 2007 and 2014. m…
Demeaning and standardizing variables in panel regressionHello everyone, I am analyzing a panel data set with 55 countries. My dependent variable is firm eq…
Subscribe to:
Post Comments (Atom)
0 Response to Simple parallel trends for Difference in Difference
Post a Comment