Skip to contents

Combines data from a nowcast dataframe, a named list of the strata associated with the nowcast dataframe, and a vector of reference dates corresponding to the time column in the baselinenowcast_df

Usage

new_baselinenowcast_df(baselinenowcast_df, output_type, nowcast_dates)

Arguments

baselinenowcast_df

Data.frame containing information for multiple draws with columns for the reference time (time), the predicted counts (pred_count), and the draw number (draw).

output_type

Character string indicating whether the output should be samples ("samples") from the estimate with full uncertainty or whether to return the point estimate ("point"). Default is "samples". If "point"estimates are specified, the minimum number of reference times needed is the number needed for delay estimation, otherwise, if "samples" are specified, at least 2 additional reference times are required for uncertainty estimation.

nowcast_dates

Vector of reference dates that were right-truncated and so actually nowcast (as opposed to fully observed). Used to populate the logical nowcast column.

Value

An object of class baselinenowcast_df