Skip to contents

Format the subpopulation-level hospital admissions data into a tidy dataframe

Usage

format_subpop_hosp_data(pred_obs_hosp_subpop, dur_obs, subpop_map, date_df)

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 and t that map time in days to dates

Value

a tidy dataframe containing counts of admissions by date alongside population size for each subpopulation