
Last chance! 50% off unlimited learning
Sale ends in
Uses the parallel
library to distribute replicate
processing across cores.
mcreplicate(n, expr, refresh = 0.1, mc.cores=2 )
Number of replications
Code to replicate
Status update refresh interval
Number of cores to use
This function uses mclapply
to distribute replications across cores. It then simplifies the result to an array.
McElreath 2014, Statistical Rethinking.