The diagnostic flag is TRUE if either of the last two weeks of the dataset
have fewer than an aggregate 10 hospital admissions per week.
This aggregation excludes the
count from confirmed outliers, which have been set to NA in the data.
Usage
get_low_case_count_diagnostic(calib_data)
Arguments
- calib_data
A dataframe. It has date
column of type Date
,
daily_hosp_admits
column of type numeric and period
column of type character.
Value
Returns TRUE if less than 10 hospital admissions in either of
the last two weeks
Details
Adapted from https://github.com/cdcent/cfa-nnh-pipelines/blob/7f1c89d2eecfed89cc3f1be1771d93540ffd6eb4/NHSN/Rt/R/disease_process.R #nolint
This function assumes that the calib_data
input dataset has been
"completed": that any implicit missingness has been made explicit.