Description Usage Arguments Value
Compute first week when incidence falls below baseline and remains below for at least lookahead_length weeks in a row.
| 1 | get_below_baseline_idx(trajectory, baseline, lookahead_length)
 | 
| trajectory | a numeric vector with incidence for each time point in a season | 
| baseline | the threshold that incidence must cross | 
| lookahead_length | number of consecutive time points that incidence must fall below the baseline threshold (default 3) | 
the smallest index i such that every entry of trajectory[seq(from = i, length = lookahead_length)] is < baseline, if such an index exists. Otherwise, NA_integer_
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.