
Combine data from a nowcast dataframe, strata, and reference dates
Source:R/baselinenowcast_df-class.R
new_baselinenowcast_df.RdCombines 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
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". 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.
Value
An object of class baselinenowcast_df
See also
Main nowcasting interface functions
assert_baselinenowcast_df(),
baselinenowcast(),
baselinenowcast.data.frame(),
baselinenowcast.reporting_triangle(),
baselinenowcast_df-class