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@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.

Reply via email to