createCaseFlag: Create Case flags

View source: R/library--analysis_tools--DHS_methods--flag_functions.R

createCaseFlagR Documentation

Create Case flags

Description

Create case flags created by the DHS to warn of increasing cases

Usage

createCaseFlag(DF)

Arguments

DF

Input data frame

Value

data frame with columns: site: Location of flag date: date of flag case_flag: when the 7 day slope is above 5 case_flag_plus_comm.threshold: when case flag and more then 200 cases slope_switch_flag: the first case flags in consecutive case flags

Examples

data(Example_data, package = "Covid19Wastewater")
data(Pop_data, package = "Covid19Wastewater")
Example_data <- Example_data[Example_data$site == 'Janesville',]
createCaseFlag(dplyr::left_join(Example_data, Pop_data))

Covid19Wastewater documentation built on Aug. 25, 2023, 1:07 a.m.