Hi Statalist friends
I want to do a diff-in-diff Regression, but I get always the following error: Model is not identified. The treatment variable treated was omitted because of collinearity. How can I fix that?
I would be very thankful if someone could help me.
I want to do a diff-in-diff Regression, but I get always the following error: Model is not identified. The treatment variable treated was omitted because of collinearity. How can I fix that?
Code:
didregress (Arbeitslosenrate) (treated), group(code) time(numvar)
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float code int numvar float(Anteil_Betroffene Arbeitslosenrate) str2 anos2 str3 estu str2(nuts1 sexo) float(Anzahl_Betroffene treated post) 12 226 23.6 39.9 "05" "2" "4" "6" 89 1 0 12 230 23.6 42.2 "05" "2" "4" "6" 89 1 0 12 234 23.6 39.9 "05" "2" "4" "6" 89 1 0 12 238 23.6 42 "05" "2" "4" "6" 89 1 1 12 240 23.6 44.4 "05" "2" "4" "6" 89 1 1 49 226 .2 12.7 "05" "5" "2" "1" 1 0 0 49 230 .2 9.2 "05" "5" "2" "1" 1 0 0 49 234 .2 7 "05" "5" "2" "1" 1 0 0 49 238 .2 6.4 "05" "5" "2" "1" 1 0 1 49 240 .2 6.5 "05" "5" "2" "1" 1 0 1 end
I would be very thankful if someone could help me.
Comment