View source: R/continue_funs.R
kmbayes_parallel_continue | R Documentation |
Use this when you've used MCMC sampling with the kmbayes_parallel
function, but you did not take enough samples and do not want to start over.
kmbayes_parallel_continue(fitkm.list, ...)
fitkm.list |
output from |
... |
arguments to |
a bkmrfit.list
object, which is just a list of bkmrfit
objects similar to kmbayes_parallel
kmbayes_parallel
set.seed(111) dat <- bkmr::SimData(n = 50, M = 4) y <- dat$y Z <- dat$Z X <- dat$X ## Not run: future::plan(strategy = future::multisession, workers=2) fitty1p = kmbayes_parallel(nchains=2, y=y,Z=Z,X=X) fitty2p = kmbayes_parallel_continue(fitty1p, iter=3000) cobj = as.mcmc.list(fitty2p) plot(cobj) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.