RegisterBatchData: Creates .data.batch for running multiple birth cohorts

RegisterBatchDataR Documentation

Creates .data.batch for running multiple birth cohorts

Description

Creates .data.batch which is used when running/looping over multiple birth cohorts ( runCohort() ) at once.

Usage

RegisterBatchData(coverage_data, reporting_years = -1, force = FALSE)

Arguments

coverage_data

Data table with columns country_code, year (of vaccination), age_first, age_last, coverage.

reporting_years

Numeric_vector, years that should be reported (parameter: not required)

force

Logical, whether .data.batch should be overwritten if it already exists (parameter: not required)

Details

.data.batch is based on the data.table (DT) coverage_data, which is a DT with columns country_code (ISO3), year (of vaccination), age_first (age at vaccination), age_last (age at vaccination), coverage (in proportion, for all the agegroups specified).

If you only want to run 1 age in this country/coverage combination, age_first==age_last

Value

batch data of cohorts with vaccination coverage

Examples

#

lshtm-vimc/prime documentation built on Feb. 29, 2024, 10:49 a.m.