find_starts {REffectivePred} | R Documentation |
Detect start of waves
Description
Find the approximate beginning times of waves given times of peaks. This is based on local maxima of R_t
.
Usage
find_starts(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 beginnings (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 start times of waves, as scalars.
[Package REffectivePred version 1.0.0 Index]