Format the subpopulation-level hospital admissions data into a tidy dataframe
Source:R/model_component_fwd_sim.R
format_subpop_hosp_data.Rd
Format the subpopulation-level hospital admissions data into a tidy dataframe
Arguments
- pred_obs_hosp_subpop
matrix of non-negative integers indicating the number of hospital admissions on each day in each subpopulation. Rows are subpopulations, columns are time points
- dur_obs
integer indicating the number of days we want the observations for
- subpop_map
tibble mapping the numbered subpopulations to the wastewater sites, must contain columns "subpop_index" and "subpop_name"
- date_df
tibble of columns
date
andt
that map time in days to dates