Description Usage Format Source References Examples
Radii of 100 circular indentations cut by a milling machine.
1 |
A vector of length 100 containing the individual radii.
The data is available online in the data archive of the Journal of Applied Econometrics. url: http://qed.econ.queensu.ca/jae/2003-v18.1/bai-perron/.
Daniel Barry and J. A. Hartigan (1993), A Bayesian Analysis for Change Point Problems, Journal of The American Statistical Association, 88, 309-19.
F. Lombard (1987), Rank Tests for Changepoint Problems, Biometrika, 74, 615-624.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
## Not run:
data(lombard)
# univariate change point analysis
bcp.model <- bcp(lombard, burnin=500, mcmc=5000, return.mcmc=TRUE)
# linear model change point analysis
bcpr.model <- bcp(lombard, cbind(1:100), burnin=500, mcmc=5000, return.mcmc=TRUE)
plot(bcp.model, main="Lombard Milling Data")
plot(bcpr.model, main="Lombard Milling Data (with Regression Model)")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.