[R] Package mice: Error in if (meth[j] != "") { : argument is of length zero

From: Rita Carreira <ritacarreira_at_hotmail.com>
Date: Fri, 08 Apr 2011 21:56:06 +0000

Dear R users,
I am using package mice and I am getting the error " Error in if (meth[j] != "") { : argument is of length zero." I have tried using several different versions of R (even the one that will be coming out this month) to no avail. I am using RStudio as my interface with R. Also note that I had run this a couple of days ago and it was working fine; I can't, however, remember the version of R that I was using but it was either R-2.11.1 or R-2.12.1. Please find below my code and error. Any thoughts or ideas?

> library(mice)

# setting up the default settings for the imputation ini <- mice(NewPrimal,

            seed = 52275,
            method = "norm",
            maxit=0,
            pred = quickpred(NewPrimal, 
                   mincor = 0.25,
                   minpuc = 0.95, 
                   include = c("D1", "D2", "D3", 
                               "Qtr1", "Qtr2", "Qtr3",
                               "Feb", "Mar", "Apr", "May", "Jun", "Jul", 
                               "Aug", "Sep", "Oct", "Nov", "Dec"),
                   exclude = c("ActualWeekEndingDate", "Date", "Year")),
                   print=FALSE)

Error in if (meth[j] != "") { : argument is of length zero

Thank you so very much!
Rita


"If you think education is expensive, try ignorance"--Derek Bok                                                

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 08 Apr 2011 - 22:04:43 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 10 Apr 2011 - 06:50:28 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive