parmice: Parallel mice

Description Usage Arguments Value Examples

View source: R/parmice.R

Description

Thin wrapper around mice to perform imputations in parallel

Usage

1
parmice(..., paropts = list(.combine = ibind))

Arguments

...

Arguments passed to mice

paropts

A named list of arguments passed to foreach

Value

A mids object

Examples

1
2
3
4
5
6
7
8
library(mice)
library(doParallel)
library(parallel)
ncores <- 2
cl <- makeCluster(ncores)
clusterSetRNGStream(cl, 31313)
registerDoParallel(cl)
parmice(nhanes, m=5, paropts=list(".combine"=ibind))

griverorz/parmice documentation built on May 17, 2019, 8:38 a.m.