kmbayes_parallel_continue: Continue sampling from existing bkmr_parallel fit

Description Usage Arguments Value See Also Examples

View source: R/continue_funs.R

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

1

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
set.seed(111)
dat <- bkmr::SimData(n = 50, M = 4)
y <- dat$y
Z <- dat$Z
X <- dat$X
## Not run: 
Sys.setenv(R_FUTURE_SUPPORTSMULTICORE_UNSTABLE="quiet")
future::plan(strategy = future::multiprocess, 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)

bkmrhat documentation built on Feb. 18, 2021, 1:09 a.m.