Hi,
I have a data-set of 11 years for 2 areas one is treatment area and another is control area. My policy changed occurs in 2016. I want to find out the effect of change on the treatment area by using DID. I want to apply DID by using -xtdidregress-.
It will be helpful if any one guide me to use the -xtdidregress- for my data-set.
I have a data-set of 11 years for 2 areas one is treatment area and another is control area. My policy changed occurs in 2016. I want to find out the effect of change on the treatment area by using DID. I want to apply DID by using -xtdidregress-.
It will be helpful if any one guide me to use the -xtdidregress- for my data-set.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str9 area int year float(loggrdp logvkt logpopden cng petrol tti) byte(treat_dummy_var post_time_dummy) "CONTROL" 2009 4.08982 3.81882 3.54331 .201 1.17 1.85141 0 0 "CONTROL" 2010 4.14094 3.82747 3.55197 .201 1.09 1.97962 0 0 "CONTROL" 2011 4.18856 3.83617 3.56066 .201 1.09 2.10783 0 0 "CONTROL" 2012 4.20421 3.84479 3.56928 .201 1.15 2.23604 0 0 "CONTROL" 2013 4.25524 3.85344 3.57793 .201 1.15 2.36425 0 0 "CONTROL" 2014 4.31695 3.86212 3.58661 .201 1.3 2.49246 0 0 "CONTROL" 2015 4.36941 3.87073 3.59522 .42 1.3 2.62067 0 0 "CONTROL" 2016 4.4244 3.87935 3.60385 .42 1.12 2.77925 0 1 "CONTROL" 2017 4.47662 3.88809 3.61258 .48 1.12 2.93784 0 1 "CONTROL" 2018 4.517 3.89674 3.62123 .48 1.12 3.09642 0 1 "CONTROL" 2019 4.56001 3.90558 3.63007 .516 1.12 3.255 0 1 "TREATMENT" 2009 4.6127 4.74174 3.9492 .201 1.17 2.272 1 0 "TREATMENT" 2010 4.66381 4.75719 3.96466 .201 1.09 2.331 1 0 "TREATMENT" 2011 4.71144 4.77263 3.98009 .201 1.09 2.39 1 0 "TREATMENT" 2012 4.72709 4.78808 3.99552 .201 1.15 2.48918 1 0 "TREATMENT" 2013 4.77812 4.80352 4.01098 .201 1.15 2.58836 1 0 "TREATMENT" 2014 4.83983 4.81897 4.02641 .201 1.3 2.68755 1 0 "TREATMENT" 2015 4.89229 4.83441 4.04186 .42 1.3 2.78673 1 0 "TREATMENT" 2016 4.94728 4.84986 4.05731 .42 1.12 2.94 1 1 "TREATMENT" 2017 4.9995 4.8653 4.07275 .48 1.12 3.286 1 1 "TREATMNET" 2018 5.03987 4.88075 4.08819 .48 1.12 3.63 1 1 "TREATMENT" 2019 5.08289 4.89612 4.10358 .516 1.12 3.97927 1 1 end
Comment