Calculate low case count diagnostic flag
low_case_count_diagnostic.Rd
The diagnostic flag is TRUE if either of the last two weeks of the dataset have fewer than an aggregate 10 cases per week. This aggregation excludes the count from confirmed outliers, which have been set to NA in the data.
Arguments
- df
A dataframe as returned by
read_data()
. The dataframe must include columns such asreference_date
(a date vector) andconfirm
(the number of confirmed cases per day).