Sheldon:
I couldn't seem to get mice running on my mac and kept getting weird
errors. I was working with Elena and, rather than investigate, we
tried the same code on a PC and it worked fine. Before you devote too
much time to debugging your code, you might just see if the same
lines work with the Windows version of R (assuming that's an easy
test). To be clear, our problem may have had nothing to do with being
on a mac but I thought I'd pass along our experience.
Omar
On May 5, 2006, at 1:49 PM, Sheldon Bond wrote:
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
_______________________________________________
gov2001-l mailing list
gov2001-l(a)lists.fas.harvard.edu
http://lists.fas.harvard.edu/mailman/listinfo/gov2001-l
Omar Wasow
M.A.-Ph.D. Candidate
Department of African and African American Studies
Department of Government
Harvard University