create_template_dt: Create template data.table to store all observed data

Description Usage Arguments Value

Description

Create a data table containing all location-age-sex-year-week groups that will be estimated in the model. This template can then be left-joined to death, population, and covariate data.

Usage

1
create_template_dt(model_years, model_week_range, location_table, age_groups)

Arguments

model_years

Vector of years to be modeled

model_week_range

Vector of weeks IDs (1-52) to include in the model

location_table

Table with 'location_code's for all locations to be modeled

age_groups

Age group index, created by 'create_age_groups()'

Value

Template data.table containing all combinations of these indexes


njhenry/covidemr documentation built on Feb. 2, 2022, 2:31 a.m.