Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • psmatch: treated observation matched to each other

    Hi. I am trying to do a psmatch across treated and untreated observations in my data. The data is an unbalanced panel organized by state and week number. The treatment variable, stepone, is a binary where 1 indicates treated units. My understanding of the code below is that treated observations should be matched to untreated observations based on the controls. However, I have treated observations being matched to other treated observations as seen in group 93 under match1 below. Can someone please tell me what I am doing wrong here?

    Code:
    teffects psmatch (rate_con_avg7day) (stepone pop_perkm2_2019 povertyperct rate_test_avg7da
    > y per60_2011 litrate_2011 hospital_beds_total1k hospital_total1k htnanddm20181k commoncanc
    > ers20181k hepcases_20181k malariacase2018 mentalillness_20111k  pneumoniatot_case2018 stro
    > ke20181k tb2018 exphealth_percap1516 typoidtot_case2018), gen(match)
    
    
    
    Treatment-effects estimation                   Number of obs      =      1,439
    Estimator      : propensity-score matching     Matches: requested =          1
    Outcome model  : matching                                     min =          1
    Treatment model: logit                                        max =          5
    ------------------------------------------------------------------------------
                 |              AI robust
    rate_con_a~y | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
    -------------+----------------------------------------------------------------
    ATE          |
         stepone |
       (1 vs 0)  |   1.131844   .2492294     4.54   0.000     .6433631    1.620324
    ------------------------------------------------------------------------------
    
    
    
    . predict ps0 ps1, ps
    (93 missing values generated)
    
    . predict y0 y1, po
    
    . predict te
    (option te assumed; treatment effects)
    
    
    clear
    input str50 state byte(stepone weeknum) long(match1 match2 match3 match4) float(ps0 ps1 y0 y1 te)
    "Manipur"           1 48  87   . . .  .8218392 .17816077    16.782236   2.675936   -14.1063
    "Manipur"           1 34  89   . . .  .8008432  .1991568    16.882893   5.679112  -11.20378
    "Manipur"           1 29  90   . . .  .7911213  .2088787    16.920576  2.9752774   -13.9453
    "Maharashtra"       1 13  93   . . .  .7682069  .2317931    16.989803   .5941238  -16.39568
    "Maharashtra"       1 14  93   . . .  .7669686  .2330314    16.989803   .7497494 -16.240053
    "Manipur"           1 31  93   . . .   .768623 .23137704    16.989803   3.951982  -13.03782
    "Delhi"             1 14  95  96 . . .57462245 .42537755  .0004274316   1.601775  1.6013477
    "Madhya Pradesh"    1 35  97   . . . .57438624  .4256138  .0006648936  2.1091216  2.1084566
    "Nagaland"          1 27 101   . . .  .5709734  .4290266  .0006648936  2.0417275  2.0410626
    "Madhya Pradesh"    1 36 102   . . .  .5693923  .4306077  .0006648936  2.1786027  2.1779377
    "Maharashtra"       1 44 102   . . . .56936884  .4306311  .0006648936  15.967074   15.96641
    "Delhi"             1 15 102   . . .  .5697018  .4302982  .0006648936  2.2916985  2.2910335
    "Madhya Pradesh"    1 37 103   . . .  .5651109  .4348891   .001424772  2.2604566  2.2590318
    "Gujarat"           0 23 104   . . .  .5607496  .4392504    1.0784289 .016337385 -1.0620915
    "Haryana"           0 29 108   . . .  .5389353  .4610647    4.0066066  .13449849  -3.872108
    "Gujarat"           0 25 109   . . .  .5338113  .4661887     1.310717  .18977962 -1.1209372
    "Haryana"           0 30 110   . . . .52597314  .4740269    4.4260902   .3032865 -4.1228037
    "Haryana"           0 34 112   . . .   .473963   .526037     5.615418   .8869681 -4.7284503
    "Haryana"           0 37 113   . . .  .4380923  .5619077     7.139569   1.213146  -5.926423
    "Assam"             0 43 113   . . .  .4362902  .5637098     6.300786   1.213146   -5.08764
    "Gujarat"           0 36 115   . . .  .3827035  .6172965     2.690959  1.9108093  -.7801499
    "Haryana"           0 43 117   . . .  .3308998  .6691002     9.124742   2.844225  -6.280517
    "Gujarat"           0 40 117   . . .  .3288202  .6711798     3.259324   2.844225  -.4150989
    "Bihar"             0 19 123   . . . .24621755  .7537825     .1585497   8.356857   8.198308
    "Jharkhand"         0  4 125   . . .  .1761124  .8238876 .00002291642   9.623671   9.623648
    "Jharkhand"         0  5 125   . . .  .1761058  .8238942 .00016805374   9.623671   9.623503
    "Jharkhand"         0  6 125   . . .  .1760596  .8239404   .000672215   9.623671   9.622998
    "Jharkhand"         0  7 125   . . . .17597395   .824026  .0012374866   9.623671   9.622433
    "Meghalaya"         0 13 129   . . . .14365959  .8563404    .00934952  10.727868  10.718518
    "Meghalaya"         0 22 131   . . . .13341624  .8665838    .28730947   10.92971  10.642402
    "Meghalaya"         0 24 131   . . . .13244843  .8675516     .4632666   10.92971  10.466445
    "Manipur"           1 38 146   . . .  .7836701 .21632986  .0021328803   7.686617   7.684484
    "Manipur"           1 30 149   . . .  .7803726 .21962743    .04913123   3.456471  3.4073396
    "Maharashtra"       1 11 152   . . .  .7706667 .22933325     .1774748  .30579215  .12831736
    "Maharashtra"       1 15 153   . . .  .7668766  .2331234     .2460019    .933609   .6876071
    "Karnataka"         1 12 156   . . .   .752628   .247372     .7719485  .03527029  -.7366782
    "Maharashtra"       1 20 156   . . .  .7527024 .24729766     .7719485   2.689068  1.9171196
    "Odisha"            1 15 159   . . .  .7122262  .2877738    1.9079112  .09609842 -1.8118128
    "Odisha"            1 16 159   . . .   .711139 .28886098    1.9079112  .12654033  -1.781371
    "Karnataka"         1 23 159   . . .  .7112266 .28877345    1.9079112  2.8918724   .9839612
    "Odisha"            1 14 159   . . .  .7132092 .28679085    1.9079112  .07165592 -1.8362553
    "Odisha"            1 17 159   . . .  .7097287 .29027134    1.9079112  .16308632  -1.744825
    "Madhya Pradesh"    1  8 163   . . .  .6509194  .3490806    3.8144436  .02864196  -3.785802
    "Nagaland"          1 12 164   . . .  .6370414  .3629585     4.270555 .003920266  -4.266635
    "Nagaland"          1  9 164   . . .  .6382291  .3617709     4.270555          0  -4.270555
    "Maharashtra"       1 35 164   . . .  .6380595  .3619405     4.270555  13.863894    9.59334
    "Nagaland"          1 11 164   . . .  .6379741  .3620259     4.270555          0  -4.270555
    "Nagaland"          1 10 164   . . .   .638128   .361872     4.270555          0  -4.270555
    "Madhya Pradesh"    1 24 165   . . .  .6248753  .3751247     4.704388   .5769947 -4.1273932
    "Manipur"           1 46 165   . . .  .6256977  .3743023     4.704388   9.312738  4.6083503
    "Nagaland"          1 25 167   . . . .58083797  .4191621     5.508355  1.7378073 -3.7705474
    "Odisha"            1 31 168   . . . .55671924  .4432808     5.732965    5.45446 -.27850533
    "Nagaland"          1 35 169   . . . .53766346  .4623365     5.891852   4.263588  -1.628264
    "Madhya Pradesh"    1 42 169   . . .  .5374671 .46253285     5.891852   2.837342   -3.05451
    "Odisha"            1 33 170   . . . .52670217  .4732978     5.974564   6.233188  .25862408
    "Delhi"             1 18 170   . . .  .5278413  .4721586     5.974564    5.20089  -.7736745
    "Madhya Pradesh"    1 44 170   . . .  .5271915  .4728085     5.974564  2.9838905 -2.9906735
    "Nagaland"          1 37 170   . . .  .5279292  .4720708     5.974564  4.7363453 -1.2382188
    "Nagaland"          1 38 170   . . .   .526738   .473262     5.974564   5.074817  -.8997469
    "Nagaland"          1 45 171   . . .  .5155157  .4844843     6.046194   5.582325  -.4638686
    "Karnataka"         1 35 172   . . . .50811374  .4918863     6.104815   12.65584   6.551026
    "Delhi"             1 21 173   . . .  .4944756  .5055244     6.143286   6.683167   .5398812
    "Chhattisgarh"      1 10 174   . . .  .4854847  .5145153     6.177741 .002093819  -6.175647
    "Chhattisgarh"      1 11 174   . . .  .4850978 .51490223     6.177741 .003784789  -6.173956
    "Chhattisgarh"      1 17 175   . . .   .474799 .52520096     6.210705   .0993445  -6.111361
    "Chhattisgarh"      1 15 175   . . .  .4787726 .52122736     6.210705  .06240675  -6.148299
    "Chhattisgarh"      1 16 175   . . .  .4769481  .5230519     6.210705   .0820419  -6.128664
    "Chhattisgarh"      1 21 176   . . .  .4642569  .5357431     6.241453  .28701234   -5.95444
    "Odisha"            1 37 176   . . .  .4645509  .5354491     6.241453   7.102713   .8612599
    "Delhi"             1 24 177   . . .  .4540598 .54594016     6.267122   7.820683  1.5535603
    "Arunachal Pradesh" 1 22 179   . . .   .436484   .563516     6.300786   1.213146   -5.08764
    "Odisha"            1 39 179   . . .  .4341719  .5658281     6.300786   7.307622  1.0068359
    "Odisha"            1 40 181   . . .  .4206076  .5793924     6.318499   7.371501  1.0530024
    "Chhattisgarh"      1 29 182   . . .  .4134197  .5865803     6.324519   3.168351  -3.156168
    "Arunachal Pradesh" 1 23 183   . . .  .4088749  .5911251     6.328714   1.555756  -4.772958
    "Odisha"            1 41 183   . . .  .4093332 .59066683     6.328714   7.429079  1.1003647
    "Karnataka"         1 39 183   . . .  .4072813 .59271866     6.328714  13.471472   7.142758
    "Puducherry"        1 24 185 186 . .  .2524582  .7475418 .00010398738   5.618256   5.618152
    "Punjab"            1 25 185 186 . . .25251842  .7474816 .00010398738   1.500323   1.500219

  • #2
    I can't see the issue with what you've provided.

    Comment


    • #3
      George Ford: You are right. It's my first time doing this, and I misread the output. Apologies for this

      Comment

      Working...
      X