Computes the discretised probability mass function of a parametric delay
distribution using primary-event censoring via
primarycensored::dprimarycensored(), the same method epinowcast relies
on for delay distributions. The PMF is over delays 0:(max_delay - 1),
truncated at max_delay. Parameters use the distribution's natural
parameterisation (e.g. meanlog/sdlog for the lognormal); the
refp_mean_int/refp_sd_int parameters are mapped accordingly.
Arguments
- mu
Location parameter on the modelled scale (
refp_mean_int).- sigma
Scale parameter on the modelled scale (
refp_sd_int). Ignored for the exponential distribution.- max_delay
Maximum delay (number of delay slots, delays `0:(max_delay
1)`).
- distribution
One of "lognormal", "gamma", "exponential", or "loglogistic".
See also
Functions used for postprocessing of model fits
.check_primarycensored(),
.delay_draw_columns(),
build_ord_obs(),
enw_add_latest_obs_to_nowcast(),
enw_nowcast_samples(),
enw_nowcast_summary(),
enw_posterior(),
enw_posterior_delay(),
enw_pp_summary(),
enw_quantiles_to_long(),
enw_summarise_samples(),
subset_obs()
