This function prepares case count data for use with EpiEstim by performing a series of validation and cleaning steps:
Value
A cleaned data frame filtered from start_date, starting at the
first date with non-zero confirmed cases, and containing at least 14 days
of data.
Details
Ensures that the input data frame has the required columns:
"date"and"confirm".Confirms that the specified
start_dateexists in the data and filters the data to include only records on or after that date.Removes leading days before the first non-zero confirmed case.
Verifies that the resulting dataset contains at least 14 valid days (as required for estimation).
This function is primarily intended as a preprocessing step for EpiEstim modeling. It combines validation checks for input structure and time coverage with minimal data cleaning logic to ensure robust downstream estimation.