Description Usage Arguments Details Value Author(s) See Also Examples

A function to extract breakpoints and confidence intervals on a time series

1 |

`x` |
An univariate ts or zoo object |

`breaks` |
Maximum number of breaks to be detected |

`confidence` |
The confidence level for the uncertainty computation. Defaults to 0.95, i.e. 95% confidence interval (two-tails). |

`plot` |
Should a diagnostic plot be returned? |

`...` |
Arguments passed to |

Threshold extraction is performed according to breakpoint analysis.
The function used is `breakpoints`

from package `strucchange`

.
The function also computes a confidence interval by a call to `confint`

.
Uncertainty analysis is therefore different from the approach used for other
thresholds (see e.g. `PhenoGu`

). Unlike the other thresholding approaches,
PhenoBP is born to work with raw data. It therefore does not require fitting
an equation. However, the function can also be used with fitted data. See example.

A named vector with extracted breakpoints

Gianluca Filippa <gian.filippa@gmail.com>

1 2 3 4 5 6 7 8 | ```
## Not run:
data(bartlett2009.filtered)
breaks <- PhenoBP(bartlett2009.filtered, breaks=4)
mean.breaks.doy <- as.numeric(format(as.POSIXct(t(breaks[2,]),
origin='1970-01-01'), '
mean.breaks.doy
## End(Not run)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.