[R] mice error: data<simpleError in cor(xobs[, keep, drop = FALSE], use = "all.obs"): 'x' is empty>

Ridge ridgewang at 126.com
Tue Dec 22 17:32:03 CET 2015


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]]



More information about the R-help mailing list