This code runs regressions and event studies examining the effects of in-utero exposure to hurricanes on postnatal breastfeeding behaviors (continuous variable)
## OLS estimation, Dep. Var.: log(BRSFEDUR)
## Observations: 8,840
## Fixed-effects: district_name: 100, bday_mo: 160, GEO_IA1992_2015^bday_year: 181
## Standard-errors: Clustered (district_name)
## Estimate Std. Error t value Pr(>|t|)
## `time_diff_months.cat_(-Inf,-36]` -0.234386 0.102742 -2.281300 0.024673
## `time_diff_months.cat_(-36,-19]` -0.045341 0.099110 -0.457478 0.648330
## `time_diff_months.cat_(-19,-9]` 0.030785 0.172444 0.178521 0.858678
## `time_diff_months.cat_(-9,0]` -0.164796 0.175784 -0.937490 0.350788
## `time_diff_months.cat_(0,9]` 0.090430 0.118824 0.761044 0.448440
## `time_diff_months.cat_(9,18]` 0.009724 0.096193 0.101092 0.919682
## `time_diff_months.cat_(18, Inf]` -0.248377 0.105100 -2.363200 0.020069
## factor(EDUCLVL)1 -0.046896 0.059701 -0.785521 0.434024
## factor(EDUCLVL)2 -0.080965 0.052417 -1.544600 0.125624
## factor(EDUCLVL)3 -0.091730 0.095256 -0.962978 0.337905
## factor(EDUCLVL)8 -0.098910 0.267197 -0.370175 0.712043
## factor(URBAN)2 0.039504 0.038168 1.035000 0.303196
## factor(KIDSEX)2 0.004234 0.028686 0.147611 0.882950
## factor(KIDTWIN)21 -0.222009 0.159418 -1.392600 0.166855
## factor(KIDTWIN)22 -0.009524 0.116999 -0.081400 0.935289
## factor(KIDBORD)2 0.012044 0.026801 0.449389 0.654134
## factor(KIDBORD)3 -0.000430 0.035840 -0.012007 0.990444
## factor(KIDBORD)4 -0.005295 0.065109 -0.081326 0.935347
## factor(KIDBORD)5 -0.001541 0.122059 -0.012628 0.989950
## factor(KIDBORD)6 0.301534 0.141846 2.125800 0.036009
## factor(KIDBORD)7 -0.078015 0.149607 -0.521466 0.603207
## factor(KIDBORD)8 0.254937 0.141073 1.807100 0.073780
## factor(KIDBORD)9 0.749977 0.248004 3.024100 0.003177
## factor(KIDBORD)10 0.295047 0.167624 1.760200 0.081467
## factor(KIDBORD)11 0.653711 0.345704 1.891000 0.061554
## factor(KIDBORD)12 -0.117014 0.112030 -1.044500 0.298802
## factor(KIDBORD)13 -0.456928 0.138201 -3.306300 0.001318
## factor(RELIGION)1000 -0.645050 0.185128 -3.484400 0.000736
## factor(RELIGION)2000 -0.572212 0.180828 -3.164400 0.002065
## factor(RELIGION)3000 -0.471410 0.264239 -1.784000 0.077482
## factor(RELIGION)4000 -0.754727 0.187719 -4.020500 0.000113
## factor(RELIGION)6402 -0.615381 0.285812 -2.153100 0.033740
## factor(RELIGION)7200 -0.709056 0.451732 -1.569600 0.119690
## factor(RELIGION)7400 -0.312590 0.310210 -1.007700 0.316069
## factor(RELIGION)9000 -0.589778 0.216286 -2.726800 0.007564
## mean_children -0.108060 0.126517 -0.854114 0.395104
## literacy -0.937795 0.406561 -2.306700 0.023158
## mean_wealth 0.166586 0.185390 0.898571 0.371061
## urban_per -0.017448 0.238211 -0.073245 0.941759
## `time_diff_months.cat_(-Inf,-36]`:close 0.183326 0.160320 1.143500 0.255590
## close:`time_diff_months.cat_(-36,-19]` 0.155979 0.123192 1.266100 0.208432
## close:`time_diff_months.cat_(-19,-9]` -0.154790 0.252817 -0.612260 0.541770
## close:`time_diff_months.cat_(-9,0]` -0.070378 0.197811 -0.355783 0.722760
## close:`time_diff_months.cat_(0,9]` -0.183995 0.143851 -1.279100 0.203863
## close:`time_diff_months.cat_(9,18]` -0.207093 0.114314 -1.811600 0.073076
## close:`time_diff_months.cat_(18, Inf]` 0.279841 0.142163 1.968400 0.051813
##
## `time_diff_months.cat_(-Inf,-36]` *
## `time_diff_months.cat_(-36,-19]`
## `time_diff_months.cat_(-19,-9]`
## `time_diff_months.cat_(-9,0]`
## `time_diff_months.cat_(0,9]`
## `time_diff_months.cat_(9,18]`
## `time_diff_months.cat_(18, Inf]` *
## factor(EDUCLVL)1
## factor(EDUCLVL)2
## factor(EDUCLVL)3
## factor(EDUCLVL)8
## factor(URBAN)2
## factor(KIDSEX)2
## factor(KIDTWIN)21
## factor(KIDTWIN)22
## factor(KIDBORD)2
## factor(KIDBORD)3
## factor(KIDBORD)4
## factor(KIDBORD)5
## factor(KIDBORD)6 *
## factor(KIDBORD)7
## factor(KIDBORD)8 .
## factor(KIDBORD)9 **
## factor(KIDBORD)10 .
## factor(KIDBORD)11 .
## factor(KIDBORD)12
## factor(KIDBORD)13 **
## factor(RELIGION)1000 ***
## factor(RELIGION)2000 **
## factor(RELIGION)3000 .
## factor(RELIGION)4000 ***
## factor(RELIGION)6402 *
## factor(RELIGION)7200
## factor(RELIGION)7400
## factor(RELIGION)9000 **
## mean_children
## literacy *
## mean_wealth
## urban_per
## `time_diff_months.cat_(-Inf,-36]`:close
## close:`time_diff_months.cat_(-36,-19]`
## close:`time_diff_months.cat_(-19,-9]`
## close:`time_diff_months.cat_(-9,0]`
## close:`time_diff_months.cat_(0,9]`
## close:`time_diff_months.cat_(9,18]` .
## close:`time_diff_months.cat_(18, Inf]` .
## ... 1 variable was removed because of collinearity (close)
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## RMSE: 1.105 Adj. R2: 0.123827
## Within R2: 0.010178
Summary of duration variable
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 0.00 8.00 13.00 15.54 24.00 60.00
Regression summary
## OLS estimation, Dep. Var.: log(BRSFEDUR)
## Observations: 8,843
## Fixed-effects: district_name: 100, bday_mo: 160, GEO_IA1992_2015^bday_year: 181
## Standard-errors: Clustered (district_name)
## Estimate Std. Error t value Pr(>|t|)
## treated 0.477396 0.132484 3.603400 0.000493 ***
## factor(EDUCLVL)1 -0.029689 0.060243 -0.492812 0.623237
## factor(EDUCLVL)2 -0.034767 0.054432 -0.638726 0.524476
## factor(EDUCLVL)3 -0.010913 0.101282 -0.107751 0.914411
## factor(EDUCLVL)8 -0.078202 0.224768 -0.347922 0.728637
## factor(KIDSEX)2 0.003602 0.028841 0.124900 0.900856
## factor(KIDTWIN)21 -0.188503 0.160472 -1.174700 0.242941
## factor(KIDTWIN)22 -0.003335 0.111835 -0.029823 0.976268
## factor(KIDBORD)2 0.013240 0.027253 0.485836 0.628157
## factor(KIDBORD)3 -0.002246 0.035933 -0.062505 0.950286
## factor(KIDBORD)4 -0.013923 0.066418 -0.209626 0.834391
## factor(KIDBORD)5 -0.011358 0.125366 -0.090602 0.927992
## factor(KIDBORD)6 0.293279 0.146021 2.008500 0.047316 *
## factor(KIDBORD)7 -0.063656 0.153648 -0.414295 0.679554
## factor(KIDBORD)8 0.229601 0.143282 1.602400 0.112244
## factor(KIDBORD)9 0.707538 0.223135 3.170900 0.002023 **
## factor(KIDBORD)10 0.291087 0.162516 1.791100 0.076329 .
## factor(KIDBORD)11 0.618954 0.341559 1.812100 0.072995 .
## factor(KIDBORD)12 -0.109424 0.106734 -1.025200 0.307770
## factor(KIDBORD)13 -0.465444 0.140934 -3.302600 0.001334 **
## factor(RELIGION)1000 -0.535386 0.155526 -3.442400 0.000846 ***
## factor(RELIGION)2000 -0.475924 0.158023 -3.011700 0.003297 **
## factor(RELIGION)3000 -0.369155 0.248958 -1.482800 0.141303
## factor(RELIGION)4000 -0.647017 0.159005 -4.069200 0.000095 ***
## factor(RELIGION)6402 -1.112500 0.291778 -3.812800 0.000239 ***
## factor(RELIGION)7200 -0.534097 0.434847 -1.228200 0.222269
## factor(RELIGION)7400 -0.189698 0.290843 -0.652235 0.515761
## factor(RELIGION)9000 -0.475715 0.194387 -2.447300 0.016157 *
## mean_children -0.006918 0.110127 -0.062815 0.950041
## literacy -0.964596 0.401311 -2.403600 0.018095 *
## mean_wealth 0.285603 0.170742 1.672700 0.097541 .
## urban_per -0.130837 0.218434 -0.598975 0.550558
## WEALTHS -0.066213 0.016911 -3.915400 0.000166 ***
## treated:WEALTHS -0.327349 0.104008 -3.147300 0.002177 **
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## RMSE: 1.1045 Adj. R2: 0.126104
## Within R2: 0.0108