Creates a validated configuration object for running state-level NHSN nowcasts.
Usage
nowcast_config(
max_delay = 7L,
scale_factor = 3,
prop_delay = 0.5,
uncertainty_model = c("negative_binomial", "normal", "skellam"),
draws = 1000L,
location = NULL,
output_dir = NULL
)Arguments
- max_delay
Integer. Maximum delay (in weeks) to consider for the reporting triangle. Default is 7.
- scale_factor
Numeric. Multiplicative factor on max_delay for training volume in baselinenowcast. Default is 3.
- prop_delay
Numeric between 0 and 1. Proportion of training data used for delay estimation. Default is 0.5.
- uncertainty_model
Character. One of
"negative_binomial"(default),"normal", or"skellam". Specifies the uncertainty model for probabilistic nowcasts.- draws
Integer. Number of posterior draws for probabilistic nowcasts. Default is 1000.
- location
Character. A single location code (e.g.,
"ca"). Default isNULL, meaning no specific location is set.- output_dir
Character. Directory path for partitioned parquet output. If
NULL, results are returned but not written to disk. Default isNULL.