An example of user defined parallelization (cluster based) function for within an MJMCMC chain calculations (mclapply or lapply are used by default depending on specification and OS).
parallelize(X, FUN)
parallelize(X,FUN)
, a list of the same length as X and named by X
a vector (atomic or list) or an expressions vector. Other objects (including classed objects) will be coerced by as.list
the function to be applied to each element of X or v, or in parallel to X
Only allowed when working with big.memory based hash table within MJMCMC (see runemjmcmc for more details)
parLapply clusterMap mclapply lapply