Skip to contents

All functions

apply_delay()
Apply the delay to generate a point nowcast
combine_obs_with_pred()
Combine observed data with a single prediction draw
.safelydoesit()
Safe iterator
estimate_dispersion()
Estimate dispersion parameters
generate_pt_nowcast_mat()
Generate point nowcast
generate_pt_nowcast_mat_list()
Generate retrospective nowcasts
generate_triangle()
Generate a single retrospective reporting triangle
generate_triangles()
Generate retrospective reporting triangles
get_delay_estimate()
Estimate a delay distribution from a reporting triangle Provides an estimate of the reporting delay as a function of the delay, based on the reporting triangle and the specified maximum delay and number of reference date observations to be used in the estimation. This point estimate of the delay is computed empirically, using an iterative algorithm starting from the most recent observations. This code was adapted from code written (under an MIT license) by the Karlsruhe Institute of Technology RESPINOW German Hospitalization Nowcasting Hub. Modified from: https://github.com/KITmetricslab/RESPINOW-Hub/blob/7cce3ae2728116e8c8cc0e4ab29074462c24650e/code/baseline/functions.R#L55 #nolint
get_nowcast_draw()
Generate a single draw of a nowcast combining observed and predicted values
get_nowcast_draws()
Generate multiple draws of a nowcast combining observed and predicted values
get_nowcast_pred_draw()
Get a draw of only the predicted elements of the nowcast vector
get_nowcast_pred_draws()
Get a dataframe of multiple draws of only the predicted elements of the nowcast vector
truncate_triangle()
Get a single truncated triangle
truncate_triangles()
Generate truncated reporting triangles