Hi, I am trying to run a difference in difference analysis, and have graph output in Stata 16. I know Stata 17 makes this easy, but I have the earlier version and have not been able to figure out how to do this. I am trying to evaluate the effect of Medicaid expansion on use of a treatment in 2 separate time periods (2010-2012) and (2014-2016).
I created dummy variables for Medicaid expansion (ME_dummy) and the times (time_period), and then ran this code to look for use of the treatment (Drug) with some other covariates.
diff Drug, treated( ME_dummy ) period( time_period ) cov ( Race FacilityType Location)
Is this correct? Drug administration is a Y/N. Also, how do I make a graph for this?
Thanks for your help!
I created dummy variables for Medicaid expansion (ME_dummy) and the times (time_period), and then ran this code to look for use of the treatment (Drug) with some other covariates.
diff Drug, treated( ME_dummy ) period( time_period ) cov ( Race FacilityType Location)
Is this correct? Drug administration is a Y/N. Also, how do I make a graph for this?
Thanks for your help!
Comment