Announcement

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

  • r(111) when incorporating CEM in to flexpaneldid

    Hi. I am trying to run the flexpaneldid command with CEM matching, but am running into the error r(111) "_h not found". However, none of the corresponding r(111) errors hold here - this is not a variable name, the variables are not out of order, etc. In addition, the on running the CEM option, I get 0 matched strata (1 below). However, I do not run into either of these problems if I run the flexpaneldid with the statmatching option, or if I run a regular CEM command outside of flexpaneldid. While running a regular CEM command on the same dataset, while I do get matched strata, I get 0s across the min-max columns (2 below).

    I am new to both the flexpaneldid and the CEM command and would greatly appreciate it if someone could help me make sense of this.

    Code:
    1. flexpaneldid with CEM
    
     flexpaneldid rate_con_avg7day, id(state) treatment(stepone) time(month) ///
    > cemmatching(pop_perkm2_2019 povertyperct deathrate_2019 infantmortrate_2019  ///
    > birthrate_2019 naturalgrwthrate_2019 hospital_total1k hospital_beds_total1k ///
    > ventilators_total1k exphealth_percap1516 typoidtot_case2018 ///
    > acuteresp_totcase2018 pneumoniatot_case2018 per60_2011 per85_2011 tb2018 ///
    > influenzacase_2018 hepcases_2018 diabetes2018 hypertension2018  ///
    > rate_test_avg7day) outcometimerelstart(1) outcomedev(-1) test ///
    >  prepdataset(flexpaneldid_preprocessing.dta)
    
    
    ********************************************************************************
    ************************* flexpaneldid *****************************************
    ********************************************************************************
    
    --------------------------------------------------------------------------------
    outcome:                rate_con_avg7day
    id:                     state
    treatment:              stepone
    time:                   month
    outcome_time_start:     1
    outcome_time_end:       .
    outcome_dev:            -1
    cemmatching:            pop_perkm2_2019 povertyperct deathrate_2019 infantmortrate_2019 birt
    > hrate_2019 naturalgrwthrate_2019 hospital_total1k hospital_beds_total1k ventilators_total1
    > k exphealth_percap1516 typoidtot_case2018 acuteresp_totcase2018 pneumoniatot_case2018 per6
    > 0_2011 per85_2011 tb2018 influenzacase_2018 hepcases_2018 diabetes2018 hypertension2018 ra
    > te_test_avg7day
    statmatching:           
    test:                   test
    outcomemissing:         
    didmodel:               
    --------------------------------------------------------------------------------
    
    
    ********************************************************************************
    ************************* Matching: CEM ****************************************
    ********************************************************************************
    
    Cutpoints:
    selection_group: (user) 
      0
    pop_perkm2_2019: (sturges) 
                     1
        +---------------+
      1 |  17.95970917  |
      2 |   1684.68374  |
      3 |   3351.40777  |
      4 |  5018.131801  |
      5 |  6684.855831  |
      6 |  8351.579862  |
      7 |  10018.30389  |
      8 |  11685.02792  |
      9 |  13351.75195  |
        +---------------+
    povertyperct: (sturges) 
                     1
        +---------------+
      1 |  .7099999785  |
      2 |  7.109999962  |
      3 |  13.50999995  |
      4 |  19.90999993  |
      5 |  26.30999991  |
      6 |   32.7099999  |
      7 |  39.10999988  |
      8 |  45.50999986  |
      9 |  51.90999985  |
        +---------------+
    deathrate_2019: (sturges) 
                     1
        +---------------+
      1 |  3.200000048  |
      2 |  3.712500066  |
      3 |  4.225000083  |
      4 |  4.737500101  |
      5 |  5.250000119  |
      6 |  5.762500137  |
      7 |  6.275000155  |
      8 |  6.787500173  |
      9 |  7.300000191  |
        +---------------+
    infantmortrate_2019: (sturges) 
                1
        +----------+
      1 |       3  |
      2 |   8.375  |
      3 |   13.75  |
      4 |  19.125  |
      5 |    24.5  |
      6 |  29.875  |
      7 |   35.25  |
      8 |  40.625  |
      9 |      46  |
        +----------+
    birthrate_2019: (sturges) 
                     1
        +---------------+
      1 |  12.30000019  |
      2 |  13.98750007  |
      3 |  15.67499995  |
      4 |  17.36249983  |
      5 |  19.04999971  |
      6 |  20.73749959  |
      7 |  22.42499948  |
      8 |  24.11249936  |
      9 |  25.79999924  |
        +---------------+
    naturalgrwthrate_2019: (sturges) 
                     1
        +---------------+
      1 |  6.400000095  |
      2 |  8.125000179  |
      3 |  9.850000262  |
      4 |  11.57500035  |
      5 |  13.30000043  |
      6 |  15.02500051  |
      7 |   16.7500006  |
      8 |  18.47500068  |
      9 |  20.20000076  |
        +---------------+
    hospital_total1k: (sturges) 
                     1
        +---------------+
      1 |  .0088826083  |
      2 |  .0280692526  |
      3 |   .047255897  |
      4 |  .0664425413  |
      5 |  .0856291857  |
      6 |    .10481583  |
      7 |  .1240024744  |
      8 |  .1431891187  |
      9 |  .1623757631  |
        +---------------+
    hospital_beds_total1k: (sturges) 
                     1
        +---------------+
      1 |  .2581743896  |
      2 |  .8229127862  |
      3 |  1.387651183  |
      4 |  1.952389579  |
      5 |  2.517127976  |
      6 |  3.081866372  |
      7 |  3.646604769  |
      8 |  4.211343165  |
      9 |  4.776081562  |
        +---------------+
    ventilators_total1k: (sturges) 
                     1
        +---------------+
      1 |    .00645917  |
      2 |  .0206008832  |
      3 |  .0347425963  |
      4 |  .0488843095  |
      5 |  .0630260226  |
      6 |  .0771677358  |
      7 |  .0913094489  |
      8 |  .1054511621  |
      9 |  .1195928752  |
        +---------------+
    exphealth_percap1516: (sturges) 
                  1
        +------------+
      1 |       491  |
      2 |  1162.375  |
      3 |   1833.75  |
      4 |  2505.125  |
      5 |    3176.5  |
      6 |  3847.875  |
      7 |   4519.25  |
      8 |  5190.625  |
      9 |      5862  |
        +------------+
    typoidtot_case2018: (sturges) 
                     1
        +---------------+
      1 |  .0619488657  |
      2 |  1.574088175  |
      3 |  3.086227484  |
      4 |  4.598366793  |
      5 |  6.110506102  |
      6 |  7.622645412  |
      7 |  9.134784721  |
      8 |  10.64692403  |
      9 |  12.15906334  |
        +---------------+
    acuteresp_totcase2018: (sturges) 
                     1
        +---------------+
      1 |  .7266477942  |
      2 |  69.18163133  |
      3 |  137.6366149  |
      4 |  206.0915984  |
      5 |   274.546582  |
      6 |  343.0015655  |
      7 |   411.456549  |
      8 |  479.9115326  |
      9 |  548.3665161  |
        +---------------+
    pneumoniatot_case2018: (sturges) 
                     1
        +---------------+
      1 |  .0800104365  |
      2 |  1.518746872  |
      3 |  2.957483308  |
      4 |  4.396219744  |
      5 |   5.83495618  |
      6 |  7.273692616  |
      7 |  8.712429052  |
      8 |  10.15116549  |
      9 |  11.58990192  |
        +---------------+
    per60_2011: (sturges) 
                     1
        +---------------+
      1 |  4.300000191  |
      2 |  5.337500215  |
      3 |  6.375000238  |
      4 |  7.412500262  |
      5 |  8.450000286  |
      6 |   9.48750031  |
      7 |  10.52500033  |
      8 |  11.56250036  |
      9 |  12.60000038  |
        +---------------+
    per85_2011: (sturges) 
                     1
        +---------------+
      1 |  .1749705225  |
      2 |  .2426810022  |
      3 |   .310391482  |
      4 |  .3781019617  |
      5 |  .4458124414  |
      6 |  .5135229211  |
      7 |  .5812334009  |
      8 |  .6489438806  |
      9 |  .7166543603  |
        +---------------+
    tb2018: (sturges) 
                     1
        +---------------+
      1 |  .6602662802  |
      2 |  1.097090974  |
      3 |  1.533915669  |
      4 |  1.970740363  |
      5 |  2.407565057  |
      6 |  2.844389752  |
      7 |  3.281214446  |
      8 |   3.71803914  |
      9 |  4.154863834  |
        +---------------+
    influenzacase_2018: (sturges) 
                     1
        +---------------+
      1 |            0  |
      2 |  .0221774187  |
      3 |  .0443548374  |
      4 |  .0665322561  |
      5 |  .0887096748  |
      6 |  .1108870935  |
      7 |  .1330645122  |
      8 |  .1552419309  |
      9 |  .1774193496  |
        +---------------+
    hepcases_2018: (sturges) 
                     1
        +---------------+
      1 |   .000651077  |
      2 |  .1013091044  |
      3 |  .2019671318  |
      4 |  .3026251592  |
      5 |  .4032831865  |
      6 |  .5039412139  |
      7 |  .6045992413  |
      8 |  .7052572687  |
      9 |  .8059152961  |
        +---------------+
    diabetes2018: (sturges) 
                     1
        +---------------+
      1 |  2.15168e-07  |
      2 |  8.76423e-06  |
      3 |  .0000173133  |
      4 |  .0000258624  |
      5 |  .0000344114  |
      6 |  .0000429605  |
      7 |  .0000515095  |
      8 |  .0000600586  |
      9 |  .0000686077  |
        +---------------+
    hypertension2018: (sturges) 
                     1
        +---------------+
      1 |  3.46854e-07  |
      2 |  9.63404e-06  |
      3 |  .0000189212  |
      4 |  .0000282084  |
      5 |  .0000374956  |
      6 |  .0000467828  |
      7 |    .00005607  |
      8 |  .0000653572  |
      9 |  .0000746444  |
        +---------------+
    rate_test_avg7day: (sturges) 
                     1
        +---------------+
      1 |            0  |
      2 |  68.99862003  |
      3 |  137.9972401  |
      4 |  206.9958601  |
      5 |  275.9944801  |
      6 |  344.9931002  |
      7 |  413.9917202  |
      8 |  482.9903402  |
      9 |  551.9889603  |
        +---------------+
    outcome_dev: (sturges) 
                     1
        +---------------+
      1 |            0  |
      2 |  5.018019199  |
      3 |   10.0360384  |
      4 |   15.0540576  |
      5 |   20.0720768  |
      6 |    25.090096  |
      7 |   30.1081152  |
      8 |   35.1261344  |
      9 |  40.14415359  |
        +---------------+
    
    Matching Summary:
    -----------------
    Number of strata: 202
    Number of matched strata: 0
    
                 0    1
          All  190   12
      Matched    0    0
    Unmatched  190   12
    
    
    Multivariate L1 distance: 1
    
    Univariate imbalance:
    
                                 L1      mean       min       25%       50%       75%       max
          selection_group     .0114   -.00526         0        -1         0        -1         0
          pop_perkm2_2019    .16667    509.35   -38.584   -176.68   -149.22    -434.6    3009.6
             povertyperct    .31053    8.3419      1.01      5.54      4.15     11.24     14.12
           deathrate_2019    .26316   -.03333       -.7         0       -.3       -.2        .2
      infantmortrate_2019    .20439    4.2251         6        -2         7         2         5
           birthrate_2019    .30263     1.762         1        .2       1.2       2.2        .4
    naturalgrwthrate_2019    .42719    1.7833        .1       1.5        .7       2.8       1.3
         hospital_total1k    .45439    -.0065   -.00214   -.01111   -.02503   -.03742    .02046
    hospital_beds_total1k    .66404   -.33119   -.44687   -.59913   -.42609   -.69328   -.79254
      ventilators_total1k    .60088   -.00826   -.01118     -.015   -.01068    -.0173      -.02
     exphealth_percap1516    .11667    -128.1      -242      -253        -6      -225      -685
       typoidtot_case2018    .17368   -1.0895    .66497    .29927   -.16683   -1.3949    -9.065
    acuteresp_totcase2018    .36842   -.50763    6.8547    -15.03   -19.974   -101.83    327.03
    pneumoniatot_case2018    .25263   -1.3039   -.00032    .01101   -.08933   -1.3471   -9.9978
               per60_2011    .29912   -1.0543        .3        .1      -1.1      -2.3      -2.7
               per85_2011    .19649   -.07006     .0747   -.07377   -.07923   -.04873   -.23296
                   tb2018    .38947    .05256    .32785    .01654   -.16458   -.36791    1.1347
       influenzacase_2018    .29561    .00778         0   -.00025   -.00145   -.01822    .13727
            hepcases_2018    .21754    .00641    .00486   -.05136   -.03497   -.12231    .01509
             diabetes2018    .31228  -4.1e-06  -8.1e-09   4.6e-07   2.3e-06  -3.4e-06  -3.1e-05
         hypertension2018    .22193  -7.7e-06  -8.2e-08   7.1e-07  -5.3e-08  -3.5e-05  -9.4e-06
        rate_test_avg7day    .22105   -14.795         0   -.24343   -.33988   -24.078   -388.97
              outcome_dev    .14211   -.84402    .00039   -.00263   -.03255   -.90332    -32.55
    _h not found
    r(111);
    
    
    
    2. Regular CEM command
    
     cem pop_perkm2_2019 povertyperct deathrate_2019 infantmortrate_2019 birthrate_2019 natural
    > grwthrate_2019 hospital_total1k hospital_beds_total1k ventilators_total1k exphealth_percap
    > 1516 denguecase2018 typoidtot_case2018 acuteresp_totcase2018 pneumoniatot_case2018 per60_2
    > 011 per85_2011 tb2018 influenzacase_2018 hepcases_2018 htnanddm2018 diabetes2018 hypertens
    > ion2018, tr(stepone) autocuts(fd)
    
    Matching Summary:
    -----------------
    Number of strata: 33
    Number of matched strata: 12
    
                 0    1
          All  215  131
      Matched   31   99
    Unmatched  184   32
    
    
    Multivariate L1 distance: 1.422e-16
    
    Univariate imbalance:
    
                                 L1      mean       min       25%       50%       75%       max
          pop_perkm2_2019   7.6e-17   1.8e-12         0         0         0         0         0
             povertyperct   1.7e-16         0         0         0         0         0         0
           deathrate_2019   1.6e-16   1.8e-15         0         0         0         0         0
      infantmortrate_2019   1.2e-16   1.1e-14         0         0         0         0         0
           birthrate_2019   1.4e-16   7.1e-15         0         0         0         0         0
    naturalgrwthrate_2019   1.7e-16         0         0         0         0         0         0
         hospital_total1k   1.1e-16         0         0         0         0         0         0
    hospital_beds_total1k   1.2e-16   6.7e-16         0         0         0         0         0
      ventilators_total1k   1.2e-16   2.1e-17         0         0         0         0         0
     exphealth_percap1516   1.3e-16   6.8e-13         0         0         0         0         0
           denguecase2018   1.7e-16   5.6e-17         0         0         0         0         0
       typoidtot_case2018   6.9e-17   4.4e-16         0         0         0         0         0
    acuteresp_totcase2018   7.3e-17   1.4e-14         0         0         0         0         0
    pneumoniatot_case2018   1.5e-16  -1.1e-16         0         0         0         0         0
               per60_2011   1.4e-16  -1.8e-15         0         0         0         0         0
               per85_2011   2.1e-16   2.8e-16         0         0         0         0         0
                   tb2018   1.9e-16  -2.2e-16         0         0         0         0         0
       influenzacase_2018   6.2e-17   6.9e-18         0         0         0         0         0
            hepcases_2018   2.8e-17   5.6e-17         0         0         0         0         0
             htnanddm2018   2.8e-17   2.5e-21         0         0         0         0         0
             diabetes2018   1.1e-16  -1.7e-21         0         0         0         0         0
         hypertension2018   4.2e-17   1.7e-21         0         0         0         0         0
Working...
X