0

I am trying to use the mice procedure in R to impute missing data. My database is 800k rows

I get this message when I enter this code:

Call the mice package:

library(mice)

Warning message: package ‘mice’ was built under R version 3.2.5 Imputing the missing data. The mice function takes care of the imputing process

imputedata <- mice(origdata,m=5,maxit=50,meth='pmm',seed=500)

Error: cannot allocate vector of size 822.4 Mb

I was wondering if anyone had any suggestions for how to run the procedure and not use up all the memory. Thanks.

slamballais
  • 3,161
  • 3
  • 18
  • 29
WillCoop4
  • 15
  • 6
  • How many rows contain missing data? Also do you really need 50 iteration, default is `maxit = 5`. The error youre getting is not enough memory to run. A smaller data frame and less iterations may solve this – Olivia Aug 21 '17 at 14:28
  • Thanks. I'll try that. – WillCoop4 Aug 22 '17 at 15:45

0 Answers0