View source: R/adjustedPredSIS.R
C2 | R Documentation |
The C2 uses moving sample average and sample standard deviation to standardize each observation. It calculates the sample average and sample standard deviation using the data of seven days and a 2-day lag.
C2(df, t)
df |
Dataframe with two columns which contains dates and corresponding number of daily confirmed cases |
t |
Day number |
Returns the mean, standard deviation and C2 metric value
This function is called by the "C_metric" function which in turn is called in the "threshold" function
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.