
Last chance! 50% off unlimited learning
Sale ends in
This function takes a bamlss
object which was created using a sampler function
and continues sampling from the last state of the MCMC chain.
continue(object, cores = NULL, combine = TRUE,
sleep = NULL, results = TRUE, ...)
A bamlss
object which contains samples.
An integer specifying the number of cores that should be used for the sampler
function. This is based on function mclapply
of the parallel
package.
Time the system should sleep before the next core is started.
If a results function was used to create the bamlss
object,
should the results function be applied using the new samples?
Arguments passed to the sampler function.
A bamlss
object.
# 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(samples(a, combine = FALSE))
# }
Run the code above in your browser using DataLab