Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plotChangepoint

Posterior Density of Regime Change Plot


Description

Plot the posterior density of regime change.

Usage

plotChangepoint(
  mcmcout,
  main = "Posterior Density of Regime Change Probabilities",
  xlab = "Time",
  ylab = "",
  verbose = FALSE,
  start = 1,
  overlay = FALSE
)

Arguments

mcmcout

The mcmc object containing the posterior density sample from a changepoint model. Note that this must have a

prob.state attribute.

main

Title of the plot

xlab

Label for the x-axis.

ylab

Label for the y-axis.

verbose

If verbose=TRUE, expected changepoints are printed.

start

The time of the first observation to be shown in the time series plot.

overlay

If overlay=TRUE, the probability of each regime change is drawn separately, which will be useful to draw multiple plots in one screen. See the example in MCMCpoissonChange. Otherwise, multiple plots of regime change probabilities will be drawn.

See Also


MCMCpack

Markov Chain Monte Carlo (MCMC) Package

v1.5-0
GPL-3
Authors
Andrew D. Martin [aut], Kevin M. Quinn [aut], Jong Hee Park [aut,cre], Ghislain Vieilledent [ctb], Michael Malecki[ctb], Matthew Blackwell [ctb], Keith Poole [ctb], Craig Reed [ctb], Ben Goodrich [ctb], Ross Ihaka [cph], The R Development Core Team [cph], The R Foundation [cph], Pierre L'Ecuyer [cph], Makoto Matsumoto [cph], Takuji Nishimura [cph]
Initial release
2021-01-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.