Hi All, I used mice to impute NA values in a data frame like this:
envdata = complete(mice(envdata,m=1,maxit=1)). It seems that the mice function can only works well with 1st and 2nd envdata. When enter the 3rd data, it triggers an error: data<simpleError in cor(xobs[, keep, drop = FALSE], use = "all.obs"): 'x' is empty>. iter imp variable 1 1 data data10 data25 data50 iter imp variable 1 1 data data10 data25 data50 iter imp variable 1 1 data<simpleError in cor(xobs[, keep, drop = FALSE], use = "all.obs"): 'x' is empty> So what should I do to fix it? appreciate for any help. Ridge [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.