kmbayes_parallel_continue {bkmrhat}R Documentation

Continue sampling from existing bkmr_parallel fit

Description

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.

Usage

kmbayes_parallel_continue(fitkm.list, ...)

Arguments

fitkm.list

output from kmbayes_parallel

...

arguments to kmbayes_continue

Value

a bkmrfit.list object, which is just a list of bkmrfit objects similar to kmbayes_parallel

See Also

kmbayes_parallel

Examples

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)

[Package bkmrhat version 1.1.3 Index]