View source: R/stratification.R
setup_stratification_table | R Documentation |
Creates an indexing table to tell serosolver which scale parameter to add to which model parameter.
setup_stratification_table(par_tab, unique_demographic_combinations)
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 |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.