mice icon indicating copy to clipboard operation
mice copied to clipboard

Can parlMice continue imputation if insufficient convergence is detected?

Open benelot opened this issue 5 years ago • 3 comments

Hi!

I am trying to setup parlMice in the following way:

mdf <- parlMice(...)
isNotConverged<-any(Rhats(mdf) > 1.1)
while (isNotConverged) {
    mdf<- parlMice(mdf,...)
   isNotConverged<-any(Rhats(mdf) > 1.1)
}

Is there any way this could be done? As far as I can see, I would have export the mice.mids interface.

imp1 <- mice(nhanes, maxit=1, seed = 123)
imp2 <- mice.mids(imp1)

# yields the same result as
imp <- mice(nhanes, maxit=2, seed = 123)

# verification
identical(imp$imp, imp2$imp)

from : https://rdrr.io/cran/mice/man/mice.mids.html

benelot avatar Jan 23 '19 10:01 benelot

As a matter of fact; I am working on this. I'll keep you posted.

All the best,

Gerko

gerkovink avatar Jan 23 '19 10:01 gerkovink

Exciting! Happy to hear any news!

benelot avatar Jan 23 '19 10:01 benelot

Would these changes also allow mice.mids to be run in parallel as well? I often encounter scenarios where I want to run more iterations, but at the moment I would need to either run the additional iterations serially via mice.mids or simply rerun parlmice with more iterations.

mwh3780 avatar Mar 01 '19 17:03 mwh3780

We are going to retire parlmice() in favour of futuremice() available in mice 3.14.12.

Please reopen if this problem persists in futuremice().

stefvanbuuren avatar Nov 14 '22 15:11 stefvanbuuren