cEVI_fun | R Documentation |
This sencondary function produces the convergence Epidemic Volatility Index based on input data.
cEVI_fun(cases, lag_n, c_n)
cases |
the time series of the newly observed cases per unit of time (ideally per day). |
lag_n |
Integer. Restriction of the window size for the rolling window size. |
c_n |
threshold alpha-level value (0 <= c <= 0.5) for issuing an early warning. If cevi <= c_n an early warning is issued and otherwise is not. For each time point the stored variables are: |
Dates: the date for each time point (with origin 01-01-1970).
Days: the serial number for each time point.
EVI: the estimated EVI for each time point.
Pateras K, Meletis E, Denwood M, et al. The convergence epidemic index (cEVI) an early warning tool for identifying waves in an epidemic. Inf Dis Mod, (2023)
cEVI_fun(cases=c(0,0,1,3,4,10,40,90,105,160,210,301,510,670,680,650,670,665),lag_n=3,c_n=0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.