A generic function for computing the breakdates corresponding to breakpoints (and their confidence intervals).
An object of class
logical. If set to
currently not used.
Breakpoints are the number of observations that are the last in one
segment and breakdates are the corresponding points on the underlying
time scale. The breakdates can be formatted which enhances readability
in particular for quarterly or monthly time series. For example the
2002.75 of a monthly time series will be formatted to
A vector or matrix containing the breakdates.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
## Nile data with one breakpoint: the annual flows drop in 1898 ## because the first Ashwan dam was built data("Nile") plot(Nile) bp.nile <- breakpoints(Nile ~ 1) summary(bp.nile) plot(bp.nile) ## compute breakdates corresponding to the ## breakpoints of minimum BIC segmentation breakdates(bp.nile) ## confidence intervals ci.nile <- confint(bp.nile) breakdates(ci.nile) ci.nile plot(Nile) lines(ci.nile)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.