compute_time_lag | R Documentation |
Compute Time Lag in Detection of Turning Points
compute_time_lag(
data,
peaks = nber_tp_m[, "Peak"],
troughs = nber_tp_m[, "Trough"],
frequency = 12,
type = c("first_detection", "no_revisions"),
tp_limit = 3,
n_ahead_max = NULL
)
data |
the data. |
peaks, troughs |
the reference dates of peaks and troughs. |
frequency |
the annual frequency of the series. |
type |
method used to devine the time lag. |
tp_limit |
maximal number of periods between the detected turning-point and the reference dates. |
n_ahead_max |
maximal number of periods after the final detected turning point used to compute the time lag (when |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.