Skip to contents

Format the hospital admissions data into a tidy dataframe

Usage

format_hosp_data(pred_obs_hosp, dur_obs, pop_size, date_df)

Arguments

pred_obs_hosp

vector of non-negative integers indicating the number of hospital admissions on each day

dur_obs

integer indicating the number of days we want the observations for

pop_size

integer indicating the population size of the admissions catchment area

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