Skip to contents

Convert DAEDALUS data into a long-format <data.frame>.

Usage

prepare_output(output)

prepare_output_cpp(output)

Arguments

output

The output of .model_daedalus_cpp().

Value

A <data.frame> in long or 'tidy' format with the columns "time", "age_group", "compartment", "econ_sector", and "value", for the age-group specific value of the number of individuals in each economic sector and epidemiological compartment in each timestep.

Details

There are 45 economic sectors, given by N_ECON_SECTORS, with the first 'sector' representing non-working individuals. All age groups that are considered non-working are in this first sector (children and retirees), while working-age individuals may be distributed flexibly into the various economic sectors (including non-working).