plot.bcp {bcp}R Documentation

Plotting Bayesian change point results

Description

plot.bcp() produces summary plots of the results of bcp().

Usage

 plot.bcp(x, ...)

Arguments

x the result of a call to bcp().
... additional arguments.

Details

plot.bcp() produces the following plots:

Posterior Means: location in the sequence versus the posterior mean over the iterations.

Posterior Probability of a Change: location in the sequence versus the relative frequency of iterations which resulted in a change point.

Author(s)

Chandra Erdman and John W. Emerson

See Also

bcp, summary.bcp, and print.bcp for complete results and summary statistics.

Examples


  ##### A random sample from a few normal distributions #####
  testdata <- c(rnorm(50), rnorm(50, 5, 1), rnorm(50))
  bcp.0 <- bcp(testdata)
  plot.bcp(bcp.0)


[Package bcp version 2.1.1 Index]