table_npcpt: ~~Frequency table of the number of within period changepoint...

View source: R/Summary_pcpt.R

table_npcptR Documentation

~~Frequency table of the number of within period changepoint events.~~

Description

Frequency table of the number of within period changepoint events

Usage

  table_npcpt(object)

Arguments

object

An pcpt class object.

Details

Returns a frequency table of the number of within period changepoint events in the MCMC samples.

Value

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.

Author(s)

Simon Taylor

See Also

pcpt, PeriodCPT

Examples

  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)

taylors2/PeriodCPT documentation built on June 28, 2024, 12:32 p.m.