check_demographics: Checks the entries of demographics data frame used for...

View source: R/check_inputs.R

check_demographicsR Documentation

Checks the entries of demographics data frame used for parameter stratification

Description

Checks the entries of demographics data frame used for parameter stratification

Usage

check_demographics(demographics, par_tab = NULL, verbose = FALSE)

Arguments

demographics

the data frame of demographics data. Must have columns: individual (integer ID of individual); birth (numeric time of birth); any other columns also in par_tab$stratification will be checked.

par_tab

Optional: the parameter table controlling information such as bounds, initial values etc. If included, this will be used to check that the demographics data is consistent with the data.

verbose

if TRUE, prints warning messages

Value

the same data object with corrections if needed

See Also

Other check_inputs: check_attack_rates(), check_data(), check_inf_hist(), check_par_tab(), check_proposals()

Examples

data(example_antibody_data)
check_data(example_antibody_data)

seroanalytics/serosolver documentation built on April 12, 2025, 7:49 p.m.