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
construct_triangle()
Generate a single retrospective reporting triangle
construct_triangles()
Generate retrospective reporting triangles
.apply_mask()
Apply mask to extract the elements of the matrix that are both true
.calc_n_retro_nowcast_times()
Calculate the number of retrospective nowcast times that can be used after aggregating
.check_lhs_not_only_zeros()
Check if there are non-zero-values on the LHS of NAs
.check_obs_and_pred()
Check observations and predictions are compatible
.filter_to_recent_horizons()
Filter to recent horizons
.safelydoesit()
Safe iterator
estimate_delay()
Estimate a delay distribution from a reporting triangle
estimate_uncertainty()
Estimate uncertainty parameters
fill_triangle()
Generate point nowcast
fill_triangles()
Generate retrospective nowcasts
fit_by_horizon()
Helper function that fits its each column of the matrix (horizon) to an observation model.
fit_nb()
Fit a negative binomial to a vector of observations and expectations
sample_nb()
Sample from negative binomial model given a set of predictions
sample_nowcast()
Generate a single draw of a nowcast combining observed and predicted values
sample_nowcasts()
Generate multiple draws of a nowcast combining observed and predicted values
sample_prediction()
Get a draw of only the predicted elements of the nowcast vector
sample_predictions()
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