createWasteFlags: Create waste flags

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

createWasteFlagsR Documentation

Create waste flags

Description

Create waste flags created by the DHS and the CDC to warn of increasing cases

Usage

createWasteFlags(DF, windows = c(14, 30, 60, 90), quants = c(5:9)/10)

Arguments

DF

Input data frame

windows

what windows for the rolling quantile to use

quants

what quantile for the rolling quantile to use

Value

data frame with columns: site: Location of flag date: date of flag window: what window the quantile is from quant: what quantile the quantile is from cdc_flag: flag if the linear regression of the last 5 days estimates a total percent change from the start of the period to the end of above 100 flag_ntile: if there is a cdc flag and the measurement is above the last window days quant quantile flag_ntile_pval: if there is a flag_ntile and the p value of the regression is less then .3


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