continue {bamlss} | R Documentation |
Continue Sampling
Description
This function takes a bamlss
object which was created using a sampler function
and continues sampling from the last state of the MCMC chain.
Usage
continue(object, cores = NULL, combine = TRUE,
sleep = NULL, results = TRUE, ...)
Arguments
object |
A |
cores |
An integer specifying the number of cores that should be used for the sampler
function. This is based on function |
combine |
Should the new samples be combined with the old samples into one
|
sleep |
Time the system should sleep before the next core is started. |
results |
If a results function was used to create the |
... |
Arguments passed to the sampler function. |
Value
A bamlss
object.
See Also
Examples
## Not run: ## Simulate and run model with MCMC.
set.seed(123)
d <- GAMart()
b <- bamlss(num ~ s(x1) + s(x2) + s(x3) + te(lon,lat), data = d)
## Continue sampling.
a <- continue(b)
## Plot all samples.
## plot(a, which = "samples")
## End(Not run)