Hello statausers,
First time doing DiD and first time applying Callaway & Sant'Anna (2021) command. I'm trying to estimate the effect of a reform (with a staggered rollout) on school enrollment using pooled cross-section and a linear probability model. After reading all the instructions regarding how to use the command properly, I obtain the following outcome (see the photo). I don't know if this is because I'm defining wrongly the gvar. Also, I would like to know if you see any other mistakes in my econometric model. Thank you so much.
csdid cschoolenroll allcontrols i.region i.age i.year, time(year) gvar(first_treated) method(drimp) wboot rseed(1)
Note: there are two treatment groups (+ never-treated), one get treated in 2005 and the other in 2011.

First time doing DiD and first time applying Callaway & Sant'Anna (2021) command. I'm trying to estimate the effect of a reform (with a staggered rollout) on school enrollment using pooled cross-section and a linear probability model. After reading all the instructions regarding how to use the command properly, I obtain the following outcome (see the photo). I don't know if this is because I'm defining wrongly the gvar. Also, I would like to know if you see any other mistakes in my econometric model. Thank you so much.
csdid cschoolenroll allcontrols i.region i.age i.year, time(year) gvar(first_treated) method(drimp) wboot rseed(1)
Note: there are two treatment groups (+ never-treated), one get treated in 2005 and the other in 2011.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str12 hhid float girlid byte region float(year first_treated) " 25269" 5555 12 2011 2011 " 25642" 5560 12 2011 2011 " 25508" 5557 12 2011 2011 " 25521" 5558 12 2011 2011 " 25573" 5559 12 2011 2011 " 25 31" 5554 12 2011 2011 " 25370" 5556 12 2011 2011 " 454 10" 7505 12 2011 2011 " 447540" 7488 12 2011 2011 " 447572" 7489 12 2011 2011 " 447605" 7490 12 2011 2011 " 470543" 7578 12 2011 2011 " 470543" 7579 12 2011 2011 " 158371" 6155 12 2011 2011 " 158144" 6153 12 2011 2011 " 158144" 6152 12 2011 2011 " 158407" 6156 12 2011 2011 " 158232" 6154 12 2011 2011 " 158 33" 6151 12 2011 2011 " 399 5" 1968 12 2000 2011 " 399 1" 1967 12 2000 2011 " 399 35" 1969 12 2000 2011 " 401 1" 1976 12 2000 2011 " 401 12" 1977 12 2000 2011 " 394 10" 1952 12 2000 2011 " 394 30" 1953 12 2000 2011 " 394 4" 1949 12 2000 2011 " 394 6" 1951 12 2000 2011 " 394 4" 1950 12 2000 2011 " 161391" 6166 12 2011 2011 " 161391" 6167 12 2011 2011 " 161 42" 6164 12 2011 2011 " 161108" 6165 12 2011 2011 " 161822" 6168 12 2011 2011 " 401175" 7266 12 2011 2011 " 401629" 7267 12 2011 2011 " 410268" 4821 2 2005 0 " 410268" 4820 2 2005 0 " 410679" 4823 2 2005 0 " 410460" 4822 2 2005 0 " 547837" 7915 12 2011 2011 " 547321" 7912 12 2011 2011 " 547837" 7916 12 2011 2011 " 547555" 7913 12 2011 2011 " 547571" 7914 12 2011 2011 " 397 65" 1962 12 2000 2011 " 397 68" 1963 12 2000 2011 " 492674" 7681 12 2011 2011 " 492567" 7680 12 2011 2011 " 492674" 7682 12 2011 2011 " 492519" 7679 12 2011 2011 " 492853" 7683 12 2011 2011 " 391 72" 1933 12 2000 2011 " 59419" 3122 2 2005 0 " 59419" 3121 2 2005 0 " 59103" 3120 2 2005 0 " 389 19" 1927 12 2000 2011 " 389 39" 1929 12 2000 2011 " 389 95" 1932 12 2000 2011 " 389 67" 1930 12 2000 2011 " 389 39" 1928 12 2000 2011 " 389 91" 1931 12 2000 2011 " 398 5" 1964 12 2000 2011 " 398 69" 1966 12 2000 2011 " 398 53" 1965 12 2000 2011 " 63792" 5743 12 2011 2011 " 63272" 5733 12 2011 2011 " 63693" 5738 12 2011 2011 " 63272" 5732 12 2011 2011 " 63609" 5735 12 2011 2011 " 63272" 5731 12 2011 2011 " 63770" 5741 12 2011 2011 " 63770" 5740 12 2011 2011 " 63 20" 5730 12 2011 2011 " 63792" 5742 12 2011 2011 " 63363" 5734 12 2011 2011 " 63675" 5737 12 2011 2011 " 63636" 5736 12 2011 2011 " 63770" 5739 12 2011 2011 " 392 10" 1934 12 2000 2011 " 392 28" 1938 12 2000 2011 " 392 43" 1940 12 2000 2011 " 392 19" 1936 12 2000 2011 " 392 25" 1937 12 2000 2011 " 392 28" 1939 12 2000 2011 " 392 13" 1935 12 2000 2011 " 403 65" 1981 12 2000 2011 " 403 71" 1982 12 2000 2011 " 315291" 4314 12 2005 2011 " 315600" 4315 12 2005 2011 " 315169" 4313 12 2005 2011 " 315746" 4316 12 2005 2011 " 645431" 8367 15 2011 2005 " 645569" 8368 15 2011 2005 " 385733" 4706 2 2005 0 " 385590" 4705 2 2005 0 " 385539" 4704 2 2005 0 " 385422" 4703 2 2005 0 " 385304" 4702 2 2005 0 " 386 13" 1919 12 2000 2011 end label values region hv024 label def hv024 2 "affar", modify label def hv024 12 "gambela", modify label def hv024 15 "dire dawa", modify
Comment