I try to run a difference-in-difference regression with a continuous treatment (avg_GAP_c). Now I created the Variable indicate=Post*avg_GAP_c. First I run
Code:
didreg (Arbeitslosenrate) (indicate, continuous) , group(code) time(numvar)
Now I would like to run the did without fixed effects, which I did
Code:
didreg (Arbeitslosenrate) (indicate, continuous) , nogteffects group(code) time(numvar)
Hope the someone can help me. Have a great day.
Felix
----------------------- copy starting from the next line -----------------------
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float code int numvar float Arbeitslosenrate str2 anos2 byte anos2_n float avg_GAP_c str3 estu str2 nuts1 byte nuts1_n str2 sexo byte sexo_n float(Anzahl_Betroffene post) long estu_n float indicate 1 226 .3777778 "05" 5 .007879958 "1" "1" 1 "1" 1 2 0 1 0 1 230 .5121951 "05" 5 .007879958 "1" "1" 1 "1" 1 2 0 1 0 1 234 .3 "05" 5 .007879958 "1" "1" 1 "1" 1 2 1 1 .007879958 1 238 .1923077 "05" 5 .007879958 "1" "1" 1 "1" 1 2 1 1 .007879958 1 240 .27272728 "05" 5 .007879958 "1" "1" 1 "1" 1 2 1 1 .007879958 2 226 .3043478 "05" 5 .022296773 "1" "1" 1 "6" 6 4 0 1 0 2 230 .3666667 "05" 5 .022296773 "1" "1" 1 "6" 6 4 0 1 0 2 234 .3181818 "05" 5 .022296773 "1" "1" 1 "6" 6 4 1 1 .022296773 2 238 .5 "05" 5 .022296773 "1" "1" 1 "6" 6 4 1 1 .022296773 2 240 .4 "05" 5 .022296773 "1" "1" 1 "6" 6 4 1 1 .022296773 3 226 .4193548 "05" 5 .015599324 "1" "2" 2 "1" 1 4 0 1 0 3 230 .3 "05" 5 .015599324 "1" "2" 2 "1" 1 4 0 1 0 3 234 .2 "05" 5 .015599324 "1" "2" 2 "1" 1 4 1 1 .015599324 3 238 .375 "05" 5 .015599324 "1" "2" 2 "1" 1 4 1 1 .015599324 3 240 .3714286 "05" 5 .015599324 "1" "2" 2 "1" 1 4 1 1 .015599324 4 226 .4848485 "05" 5 .03912635 "1" "2" 2 "6" 6 7 0 1 0 4 230 .6666667 "05" 5 .03912635 "1" "2" 2 "6" 6 7 0 1 0 4 234 .5294118 "05" 5 .03912635 "1" "2" 2 "6" 6 7 1 1 .03912635 4 238 .5263158 "05" 5 .03912635 "1" "2" 2 "6" 6 7 1 1 .03912635 4 240 .26666668 "05" 5 .03912635 "1" "2" 2 "6" 6 7 1 1 .03912635 5 226 .3076923 "05" 5 .07623795 "1" "3" 3 "1" 1 6 0 1 0 5 230 .3636364 "05" 5 .07623795 "1" "3" 3 "1" 1 6 0 1 0 5 234 .3636364 "05" 5 .07623795 "1" "3" 3 "1" 1 6 1 1 .07623795 5 238 .4545455 "05" 5 .07623795 "1" "3" 3 "1" 1 6 1 1 .07623795 5 240 .3333333 "05" 5 .07623795 "1" "3" 3 "1" 1 6 1 1 .07623795 6 226 .25 "05" 5 .13680671 "1" "3" 3 "6" 6 9 0 1 0 6 230 .3333333 "05" 5 .13680671 "1" "3" 3 "6" 6 9 0 1 0 6 234 .23076923 "05" 5 .13680671 "1" "3" 3 "6" 6 9 1 1 .13680671 6 238 .44444445 "05" 5 .13680671 "1" "3" 3 "6" 6 9 1 1 .13680671 6 240 .7142857 "05" 5 .13680671 "1" "3" 3 "6" 6 9 1 1 .13680671 7 226 .4285714 "05" 5 .04406996 "1" "4" 4 "1" 1 12 0 1 0 7 230 .35820895 "05" 5 .04406996 "1" "4" 4 "1" 1 12 0 1 0 7 234 .29166666 "05" 5 .04406996 "1" "4" 4 "1" 1 12 1 1 .04406996 7 238 .3478261 "05" 5 .04406996 "1" "4" 4 "1" 1 12 1 1 .04406996 7 240 .29787233 "05" 5 .04406996 "1" "4" 4 "1" 1 12 1 1 .04406996 8 226 .52307695 "05" 5 .07526647 "1" "4" 4 "6" 6 9 0 1 0 8 230 .5744681 "05" 5 .07526647 "1" "4" 4 "6" 6 9 0 1 0 8 234 .43137255 "05" 5 .07526647 "1" "4" 4 "6" 6 9 1 1 .07526647 8 238 .4186046 "05" 5 .07526647 "1" "4" 4 "6" 6 9 1 1 .07526647 8 240 .4888889 "05" 5 .07526647 "1" "4" 4 "6" 6 9 1 1 .07526647 9 226 .3297872 "05" 5 .010951692 "1" "5" 5 "1" 1 5 0 1 0 9 230 .3695652 "05" 5 .010951692 "1" "5" 5 "1" 1 5 0 1 0 9 234 .3222222 "05" 5 .010951692 "1" "5" 5 "1" 1 5 1 1 .010951692 9 238 .2352941 "05" 5 .010951692 "1" "5" 5 "1" 1 5 1 1 .010951692 9 240 .29850745 "05" 5 .010951692 "1" "5" 5 "1" 1 5 1 1 .010951692 10 226 .4576271 "05" 5 .01166011 "1" "5" 5 "6" 6 7 0 1 0 10 230 .4310345 "05" 5 .01166011 "1" "5" 5 "6" 6 7 0 1 0 10 234 .3137255 "05" 5 .01166011 "1" "5" 5 "6" 6 7 1 1 .01166011 10 238 .27941176 "05" 5 .01166011 "1" "5" 5 "6" 6 7 1 1 .01166011 10 240 .4166667 "05" 5 .01166011 "1" "5" 5 "6" 6 7 1 1 .01166011 11 226 .4804469 "05" 5 .006574537 "1" "6" 6 "1" 1 7 0 1 0 11 230 .4370861 "05" 5 .006574537 "1" "6" 6 "1" 1 7 0 1 0 11 234 .4177215 "05" 5 .006574537 "1" "6" 6 "1" 1 7 1 1 .006574537 11 238 .3691275 "05" 5 .006574537 "1" "6" 6 "1" 1 7 1 1 .006574537 11 240 .25210086 "05" 5 .006574537 "1" "6" 6 "1" 1 7 1 1 .006574537 12 226 .6165413 "05" 5 .009388856 "1" "6" 6 "6" 6 4 0 1 0 12 230 .4678899 "05" 5 .009388856 "1" "6" 6 "6" 6 4 0 1 0 12 234 .5092593 "05" 5 .009388856 "1" "6" 6 "6" 6 4 1 1 .009388856 12 238 .4418605 "05" 5 .009388856 "1" "6" 6 "6" 6 4 1 1 .009388856 12 240 .4318182 "05" 5 .009388856 "1" "6" 6 "6" 6 4 1 1 .009388856 13 226 .51282054 "05" 5 .013999105 "1" "7" 7 "1" 1 2 0 1 0 13 230 .29032257 "05" 5 .013999105 "1" "7" 7 "1" 1 2 0 1 0 13 234 .2580645 "05" 5 .013999105 "1" "7" 7 "1" 1 2 1 1 .013999105 13 238 .25 "05" 5 .013999105 "1" "7" 7 "1" 1 2 1 1 .013999105 13 240 .375 "05" 5 .013999105 "1" "7" 7 "1" 1 2 1 1 .013999105 14 226 .4285714 "05" 5 .006657395 "1" "7" 7 "6" 6 2 0 1 0 14 230 .3125 "05" 5 .006657395 "1" "7" 7 "6" 6 2 0 1 0 14 234 .3529412 "05" 5 .006657395 "1" "7" 7 "6" 6 2 1 1 .006657395 14 238 .26666668 "05" 5 .006657395 "1" "7" 7 "6" 6 2 1 1 .006657395 14 240 .2142857 "05" 5 .006657395 "1" "7" 7 "6" 6 2 1 1 .006657395 15 226 .3409091 "05" 5 .006444785 "2" "1" 1 "1" 1 23 0 2 0 15 230 .3347639 "05" 5 .006444785 "2" "1" 1 "1" 1 23 0 2 0 15 234 .25698325 "05" 5 .006444785 "2" "1" 1 "1" 1 23 1 2 .006444785 15 238 .28070176 "05" 5 .006444785 "2" "1" 1 "1" 1 23 1 2 .006444785 15 240 .26168224 "05" 5 .006444785 "2" "1" 1 "1" 1 23 1 2 .006444785 16 226 .3053892 "05" 5 .025494246 "2" "1" 1 "6" 6 64 0 2 0 16 230 .2937063 "05" 5 .025494246 "2" "1" 1 "6" 6 64 0 2 0 16 234 .3103448 "05" 5 .025494246 "2" "1" 1 "6" 6 64 1 2 .025494246 16 238 .33663365 "05" 5 .025494246 "2" "1" 1 "6" 6 64 1 2 .025494246 16 240 .3068182 "05" 5 .025494246 "2" "1" 1 "6" 6 64 1 2 .025494246 17 226 .25714287 "05" 5 .009249407 "2" "2" 2 "1" 1 40 0 2 0 17 230 .2312925 "05" 5 .009249407 "2" "2" 2 "1" 1 40 0 2 0 17 234 .2132353 "05" 5 .009249407 "2" "2" 2 "1" 1 40 1 2 .009249407 17 238 .28368795 "05" 5 .009249407 "2" "2" 2 "1" 1 40 1 2 .009249407 17 240 .28125 "05" 5 .009249407 "2" "2" 2 "1" 1 40 1 2 .009249407 18 226 .26190478 "05" 5 .017922582 "2" "2" 2 "6" 6 44 0 2 0 18 230 .2232143 "05" 5 .017922582 "2" "2" 2 "6" 6 44 0 2 0 18 234 .23387097 "05" 5 .017922582 "2" "2" 2 "6" 6 44 1 2 .017922582 18 238 .3258427 "05" 5 .017922582 "2" "2" 2 "6" 6 44 1 2 .017922582 18 240 .33783785 "05" 5 .017922582 "2" "2" 2 "6" 6 44 1 2 .017922582 19 226 .4642857 "05" 5 .018478064 "2" "3" 3 "1" 1 49 0 2 0 19 230 .26984128 "05" 5 .018478064 "2" "3" 3 "1" 1 49 0 2 0 19 234 .24285714 "05" 5 .018478064 "2" "3" 3 "1" 1 49 1 2 .018478064 19 238 .140625 "05" 5 .018478064 "2" "3" 3 "1" 1 49 1 2 .018478064 19 240 .19642857 "05" 5 .018478064 "2" "3" 3 "1" 1 49 1 2 .018478064 20 226 .3125 "05" 5 .020062577 "2" "3" 3 "6" 6 51 0 2 0 20 230 .20588236 "05" 5 .020062577 "2" "3" 3 "6" 6 51 0 2 0 20 234 .22222222 "05" 5 .020062577 "2" "3" 3 "6" 6 51 1 2 .020062577 20 238 .16666667 "05" 5 .020062577 "2" "3" 3 "6" 6 51 1 2 .020062577 20 240 .2264151 "05" 5 .020062577 "2" "3" 3 "6" 6 51 1 2 .020062577 end format %tq numvar label values estu_n estu_n label def estu_n 1 "1", modify label def estu_n 2 "2", modify
0 Response to Difference-in-Difference with continuous variables and fixed effects
Post a Comment