Description Usage Arguments Value Author(s) See Also Examples
The applyALERT
function (often called by createALERT
or evalALERT
) takes one year of data and a threshold and calculates metrics.
1 2 |
data |
a single season of surveillance data |
threshold |
the ALERT threshold to apply |
k |
the number of weeks around the peak to evaluate ALERT coverage for |
lag |
lag time in days between report date and action taken |
minWeeks |
minimum number of weeks to be in ALERT |
target.pct |
the percentage of cases the user is targeting during the ALERT period (optional) |
caseColumn |
the name of the column with the case counts in it. Defaults to 'Cases' |
plot |
|
Returns a vector with the following elements:
tot.cases |
total number of cases for the season |
duration |
duration of the ALERT period |
ALERT.cases |
total number of cases in the ALERT period |
ALERT.cases.pct |
fraction of cases in the ALERT period |
peak.captured |
1 if peak was captured, 0 otherwise |
peak.ext.captured |
1 if peak +/- |
low.weeks.incl |
the number of weeks included in the ALERT period with counts less than |
duration.diff |
if |
Nicholas G Reich and Stephen A Lauer
createALERT
, evalALERT
, robustALERT
1 2 3 | ## Find the ALERT metrics of a season with a threshold of 3
data(fluData)
applyALERT(data=fluData, threshold=3, k=2, target.pct=0.85)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.