IQSS / cem-stata

CEM for Stata
7 stars 1 forks source link

"Treatment has must have only 2 levels" #1

Closed KMBarker closed 3 years ago

KMBarker commented 3 years ago

Any help troubleshooting here would be appreciated!

I ran:

imb ia2gender t1ia1age household1 decision1 ace_food_insecure1, treatment(studygroup)

This produced multivariate L1 = 0.1478

however,

cem ia2gender t1ia1age household1 decision1 ace_food_insecure1, tr(studygroup)

gives me this:

Matching Summary: Number of strata: 97 Number of matched strata: 1

              0     1     .
      All  1384  1461    68
  Matched     1     2    36
Unmatched  1383  1459    32

NOTE: Treatment has must have only 2 levels to compute distance and weights. In addition, k2k cannot be used.

KMBarker commented 3 years ago

Unlike stata's reg command (in which observations with missing values are excluded from the analysis), cem command cannot handle missing data.