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, reference_dates, output_type)

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).

reference_dates

Vector of reference dates corresponding to the reference times in the baselinenowcast_df.

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".

Value

An object of class baselinenowcast_df