table_npcpt | R Documentation |
Frequency table of the number of within period changepoint events
table_npcpt(object)
object |
An pcpt class object. |
Returns a frequency table of the number of within period changepoint events in the MCMC samples.
A table either with each row corresponding to each chain, or a single row if the chains have previously been summarised into a single overall table.
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 = summarise_chains(ans)
table_npcpt(ans)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.