Hello,
I have monthly consumption data that I aggregated to annual data. This is the regression I am trying to run for my event study (with leads and lags) that looks at household consumption around an event happening in "post_0_treated_year".
reghdfe aver_logG11A pre_2_treated_year post_0_treated_year post_1_treated_year post_2_treated_year if treat_group==1 & around_treat_1==1, absorb(ID) cluster(postalcode)
I dropped the variable "pre_1_treated_year" as this is my omitted category. This regression works fine.
Now I want to add year of consumption fixed effect:
reghdfe aver_logG11A pre_2_treated_year post_0_treated_year post_1_treated_year post_2_treated_year if treat_group==1 & around_treat_1==1, absorb(ID cons_year) cluster(postalcode)
Now, I don't understand why Stata omits an additional category "post_2_treated_year" to the category I initially dropped "pre_1_treated_year".
Your help is highly appreciated,
Thank you
I have monthly consumption data that I aggregated to annual data. This is the regression I am trying to run for my event study (with leads and lags) that looks at household consumption around an event happening in "post_0_treated_year".
reghdfe aver_logG11A pre_2_treated_year post_0_treated_year post_1_treated_year post_2_treated_year if treat_group==1 & around_treat_1==1, absorb(ID) cluster(postalcode)
I dropped the variable "pre_1_treated_year" as this is my omitted category. This regression works fine.
Now I want to add year of consumption fixed effect:
reghdfe aver_logG11A pre_2_treated_year post_0_treated_year post_1_treated_year post_2_treated_year if treat_group==1 & around_treat_1==1, absorb(ID cons_year) cluster(postalcode)
Now, I don't understand why Stata omits an additional category "post_2_treated_year" to the category I initially dropped "pre_1_treated_year".
Your help is highly appreciated,
Thank you
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input long ID float(cons_year aver_logG11A pre_2_treated_year pre_1_treated_year post_0_treated_year post_1_treated_year post_2_treated_year around_treat_1 treat_group) str11 postalcode 500002 2007 3.00221 1 0 0 0 0 1 1 "T1A3Y8" 500002 2007 3.00221 1 0 0 0 0 1 1 "T1A3Y8" 500002 2007 3.00221 1 0 0 0 0 1 1 "T1A3Y8" 500002 2007 3.00221 1 0 0 0 0 1 1 "T1A3Y8" 500002 2007 3.00221 1 0 0 0 0 1 1 "T1A3Y8" 500002 2007 3.00221 1 0 0 0 0 1 1 "T1A3Y8" 500002 2007 3.00221 1 0 0 0 0 1 1 "T1A3Y8" 500002 2007 3.00221 1 0 0 0 0 1 1 "T1A3Y8" 500002 2007 3.00221 1 0 0 0 0 1 1 "T1A3Y8" 500002 2007 3.00221 1 0 0 0 0 1 1 "T1A3Y8" 500002 2007 3.00221 1 0 0 0 0 1 1 "T1A3Y8" 500002 2007 3.00221 1 0 0 0 0 1 1 "T1A3Y8" 500002 2008 3.6030354 0 1 0 0 0 1 1 "T1A3Y8" 500002 2008 3.6030354 0 1 0 0 0 1 1 "T1A3Y8" 500002 2008 3.6030354 0 1 0 0 0 1 1 "T1A3Y8" 500002 2008 3.6030354 0 1 0 0 0 1 1 "T1A3Y8" 500002 2008 3.6030354 0 1 0 0 0 1 1 "T1A3Y8" 500002 2008 3.6030354 0 1 0 0 0 1 1 "T1A3Y8" 500002 2008 3.6030354 0 1 0 0 0 1 1 "T1A3Y8" 500002 2008 3.6030354 0 1 0 0 0 1 1 "T1A3Y8" 500002 2008 3.6030354 0 1 0 0 0 1 1 "T1A3Y8" 500002 2008 3.6030354 0 1 0 0 0 1 1 "T1A3Y8" 500002 2008 3.6030354 0 1 0 0 0 1 1 "T1A3Y8" 500002 2008 3.6030354 0 1 0 0 0 1 1 "T1A3Y8" 500002 2009 . 0 0 1 0 0 1 1 "T1A3Y8" 500002 2009 . 0 0 1 0 0 1 1 "T1A3Y8" 500002 2009 . 0 0 1 0 0 1 1 "T1A3Y8" 500002 2009 . 0 0 1 0 0 1 1 "T1A3Y8" 500002 2009 . 0 0 1 0 0 1 1 "T1A3Y8" 500002 2009 . 0 0 1 0 0 1 1 "T1A3Y8" 500002 2009 . 0 0 1 0 0 1 1 "T1A3Y8" 500002 2009 . 0 0 1 0 0 1 1 "T1A3Y8" 500002 2009 . 0 0 1 0 0 1 1 "T1A3Y8" 500002 2009 . 0 0 1 0 0 1 1 "T1A3Y8" 500002 2009 . 0 0 1 0 0 1 1 "T1A3Y8" 500002 2009 . 0 0 1 0 0 1 1 "T1A3Y8" 500002 2010 . 0 0 0 1 0 1 1 "T1A3Y8" 500002 2010 . 0 0 0 1 0 1 1 "T1A3Y8" 500002 2010 . 0 0 0 1 0 1 1 "T1A3Y8" 500002 2010 . 0 0 0 1 0 1 1 "T1A3Y8" 500002 2010 . 0 0 0 1 0 1 1 "T1A3Y8" 500002 2010 . 0 0 0 1 0 1 1 "T1A3Y8" 500002 2010 . 0 0 0 1 0 1 1 "T1A3Y8" 500002 2010 . 0 0 0 1 0 1 1 "T1A3Y8" 500002 2010 . 0 0 0 1 0 1 1 "T1A3Y8" 500002 2010 . 0 0 0 1 0 1 1 "T1A3Y8" 500002 2010 . 0 0 0 1 0 1 1 "T1A3Y8" 500002 2010 . 0 0 0 1 0 1 1 "T1A3Y8" 500002 2011 . 0 0 0 0 1 1 1 "T1A3Y8" 500002 2011 . 0 0 0 0 1 1 1 "T1A3Y8" 500002 2011 . 0 0 0 0 1 1 1 "T1A3Y8" 500002 2011 . 0 0 0 0 1 1 1 "T1A3Y8" 500002 2011 . 0 0 0 0 1 1 1 "T1A3Y8" 500002 2011 . 0 0 0 0 1 1 1 "T1A3Y8" 500002 2011 . 0 0 0 0 1 1 1 "T1A3Y8" 500002 2011 . 0 0 0 0 1 1 1 "T1A3Y8" 500002 2011 . 0 0 0 0 1 1 1 "T1A3Y8" 500002 2011 . 0 0 0 0 1 1 1 "T1A3Y8" 500002 2011 . 0 0 0 0 1 1 1 "T1A3Y8" 500002 2011 . 0 0 0 0 1 1 1 "T1A3Y8" 500002 2012 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2012 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2012 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2012 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2012 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2012 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2012 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2012 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2012 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2012 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2012 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2012 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2013 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2013 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2013 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2013 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2013 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2013 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2013 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2013 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2013 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2013 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2013 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2013 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2014 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2014 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2014 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2014 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2014 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2014 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2014 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2014 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2014 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2014 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2014 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2014 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2015 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2015 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2015 . 0 0 0 0 0 0 1 "T1A3Y8" 500002 2015 . 0 0 0 0 0 0 1 "T1A3Y8" end
Comment