View source: R/PeriodCPT_extend.R
PeriodCPT_extend | R Documentation |
Run more MCMC samples.
PeriodCPT_extend(object, newiters = 1e4)
object |
An pcpt class object. |
newiters |
A positive integer indicating how many iterations to perform. |
This function provides the utility to run the with period cpt algorithm for a further newiters
iterations following on from the last sample from the previous run. All previous samples will be treated as being part of the burn-in period and will be discarded.
An object of class pcpt
with the new chains.
Simon Taylor
pcpt
, PeriodCPT
set.seed(1)
data = ts( rbinom(120, size = 1, prob = rep(c(0.2, 0.8), each=6)), freq = 12)
ans = PeriodCPT.bern(data, niter = 1e3)
ans = PeriodCPT_extend(ans, newiters = 1e3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.