When trying to impute a binary variable using mice, I encounter this
error message in the first iteration,
imp <- mice(Womendata, imputationMethod=imp.method)
iter imp variable
1 1 Approval.member Approval.Congress Trust.Index
Efficacy.Index Efficacy.Index2 CompetenceError in x[good, ] * w :
non-numeric argument to binary operator
My data table has the following dimension 15502 by 30. Competence is
a binary numeric variable with about 150 NA's. In my imp.method
vector, I have specified "logreg" as the method of imputation. Does
anyone have any suggestions as to what this error could mean.
Regards,
Sheldon