Hi all. I am having a problem with using a multicategory treatment
variable in CEM.
I have a survey dataset with mostly dichotomous variables. There are a
few continuous variables (such as age), which I have coarsened a little
bit. The treatment variable (EDUCATION) has three categories. When I
try to match with CEM, I get this error:
Error in imbalance(mat$groups, data = L1data, drop = mat$drop, breaks =
L1.breaks, :
more than 2 groups
The documentation for CEM says that there should be no problem with
multicategory treatment variables, so I am wondering if the dichotomous
control variables, in combination with the mulitcategory treatment
variable, is screwing things up. Or if there is another problem
entirely. When I use a dichotomous treatment variable, I get no errors.
code:
mat3 <- cem(treatment = "EDUCATION", data=cdf.data1.men, drop = c(...),
cutpoints = list(age2 = agecut, INF_MORT = infmcut,
pctvillaccessfootboat = pctvcut), verbose=3)
thanks!
Amanda
Show replies by date