Recent weeks of surveillance data are incomplete because of reporting
delays (right truncation). get_ncast estimates their final counts
with baselinenowcast,
replacing the last max_delay weeks of every series and leaving
earlier weeks untouched. Downward revisions are redistributed across
earlier delays via
preprocess_negative_values.
Arguments
- x
An
incast_data(get_data/check_data) with revision history; useget_data(revisions = TRUE).- max_delay
Integer. Number of recent weeks treated as right-truncated. Default 2.
- draws
Integer. Number of posterior samples. Default 1000.
- prop_delay
Numeric in (0, 1). Proportion of reference times used for delay estimation. Default 0.5.
- scale_factor
Numeric. Multiplier on
max_delayfor the estimation window. Default 3.
Value
An incast_ncast object with the shared backbone
(key, target, window, interval,
history) plus:
- data
Corrected series.
observationholds the nowcast median for corrected weeks;ncast_lower/ncast_upper(95\ propagate nowcast uncertainty.- meta
The nowcast settings (
max_delay,draws,prop_delay,scale_factor) andncast_summary, one tidy table of per-series weekly nowcasts (median, CrI bounds and the reported-so-farobservedcount) plotted byautoplot.
