find_ends {REffectivePred} | R Documentation |
Detect end of waves
Description
Find the approximate end times of waves given times of peaks. This is based on local minima of R_t
.
Usage
find_ends(rt_values, peaks_x, search_range)
Arguments
rt_values |
A vector containing rt values for each time point. |
peaks_x |
Time points of peaks based on daily cases (one for each wave). |
search_range |
The range of data points to go through for filtering invalid ends (a vector). |
Details
Note: This is provided for convenience only, and is not meant to replace an analyst's determination of wave bounds.
Value
A list containing the detected end times of waves, as scalars.
[Package REffectivePred version 1.0.0 Index]