From 25c1404d4f322aecb8cb3fc4dfdd56843c345905 Mon Sep 17 00:00:00 2001 From: Sam Abbott Date: Mon, 8 Jan 2024 21:31:32 +0000 Subject: [PATCH] Update R/create.R Co-authored-by: Sebastian Funk --- R/create.R | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/R/create.R b/R/create.R index ed253b264..5f3c552b8 100644 --- a/R/create.R +++ b/R/create.R @@ -13,8 +13,10 @@ #' threshold then the zero is replaced using `fill`. #' #' @param fill Numeric, defaults to NA. Value to use to replace NA values or -#' zeros that are flagged by `zero_threshold`. If the default NA is used then -#' dates with NA values will be skipped in model fitting. +#' zeroes that are flagged because the 7-day average is above the +#' `zero_threshold`. If the default NA is used then dates with NA values or with +#' 7-day averages above the `zero_threshold` will be skipped in model fitting. If +#' this is set to 0 then the only effect is to replace NA values with 0. #' #' @inheritParams estimate_infections #' @importFrom data.table copy merge.data.table setorder setDT frollsum