mirtCluster: Define a parallel cluster object to be used in internal...

Description Usage Arguments Author(s) References Examples

View source: R/mirtCluster.R

Description

This function defines a object that is placed in a relevant internal environment defined in mirt. Internal functions such as calcLogLik, fscores, etc, will utilize this object automatically to capitalize on parallel processing architecture. The object defined is a call from parallel::makeCluster(). Note that if you are defining other parallel objects (for simulation desings, for example) it is not recommended to define a mirtCluster.

Usage

1

Arguments

spec

input that is passed to parallel::makeCluster(). If no input is given the maximum number of available local cores will be used

...

additional arguments to pass to parallel::makeCluster

remove

logical; remove previously defined mirtCluster()?

Author(s)

Phil Chalmers rphilip.chalmers@gmail.com

References

Chalmers, R., P. (2012). mirt: A Multidimensional Item Response Theory Package for the R Environment. Journal of Statistical Software, 48(6), 1-29. doi: 10.18637/jss.v048.i06

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 

#make 4 cores available for parallel computing
mirtCluster(4)

#' #stop and remove cores
mirtCluster(remove = TRUE)


## End(Not run)

xzhaopsy/MIRT documentation built on May 29, 2019, 12:42 p.m.