plotIntervention {MCMCpack}R Documentation

Plot of intervention analysis

Description

Plot the results of changepoint internvetion analysis

Usage

    plotIntervention(mcmcout, forward = TRUE, start = 1,
    alpha = 0.05, col = "red", main="", ylab="", xlab="")

Arguments

mcmcout

The mcmcout object containing the posterior density sample from changepoint intervention analysis.

forward

If TRUE, draw the result of forward prediction. If FALSE, draw the result of backward prediction.

start

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

alpha

The size of the prediction error band in the plot. By default, alpha = 0.05, which means the 95 percent Bayesian credible interval.

col

The color of predicted data.

main

Title of the plot

ylab

Label for the y-axis.

xlab

Label for the x-axis.

References

Jong Hee Park. 2012. "A Change-point Approach to Intervention Analysis Using Bayesian Inference" Presented at the 2012 Annual Meeting of Korean Statistical Society.

See Also

MCMCintervention


[Package MCMCpack version 1.3-3 Index]