setup_stratification_table: Create indexing table for parameter stratifications

View source: R/stratification.R

setup_stratification_tableR Documentation

Create indexing table for parameter stratifications

Description

Creates an indexing table to tell serosolver which scale parameter to add to which model parameter.

Usage

setup_stratification_table(par_tab, unique_demographic_combinations)

Arguments

par_tab

the parameter table, including a column called stratification which is NA if no stratification is requested, for with a character value matching an entry in antibody_data or timevarying_demographics

unique_demographic_combinations

table of unique stratification combinations. Columns give stratification variable, rows give each unique combinations

Value

a list with two entries: 1) a list of matrices with entries for each stratification level, with number of columns equal to the number of parameters, and number of rows equal to the number of stratification levels. Each entry is the index of the scale parameter to use for that stratification level and parameter; 2) a vector of scale parameters


adamkucharski/serosolver documentation built on June 12, 2025, 9:08 a.m.