| detect_warnings | R Documentation |
Detect Early Warning Signals in a Time Series
detect_warnings(
data,
method = "rolling",
metrics = "all",
window = 0.5,
burnin = 0.1,
demean = TRUE,
detrend = "none",
threshold = 2,
consecutive = 2L,
bandwidth,
span,
degree
)
data |
[ |
method |
[ |
metrics |
[
|
window |
[ |
burnin |
[ |
demean |
[ |
detrend |
[
|
threshold |
[ |
consecutive |
[ |
bandwidth |
See |
span |
See |
degree |
See |
An object of class ews containing the EWS results as a tibble.
set.seed(123)
ts_data <- stats::arima.sim(list(order = c(1, 1, 0), ar = 0.6), n = 200)
# Rolling window (default)
ews_roll <- detect_warnings(ts_data)
# Expanding window
ews_exp <- detect_warnings(ts_data, method = "expanding")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.