table_pcpt | R Documentation |
Frequency table of the within period changepoint events.
table_pcpt(object)
object |
An pcpt class object. |
Returns a frequency table of the number of samples where the within period time step appears anywhere in the periodic changepoint vector. Note that the changepoint vector "c(1)" corresponds to the no-within period change (m=1) where the "1" is used as a holding space. As such, these samples are added as an extra column at the end of the table and the totals elsewhere in the table relates to the remaining samples where the number of within period changepoint events are >= 2.
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_pcpt(ans)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.