add_scale_pars: Add scaling parameters to par_tab

View source: R/stratification.R

add_scale_parsR Documentation

Add scaling parameters to par_tab

Description

Adds entries to par_tab to stratify parameters by requested stratification levels. antibody_data and timevarying_demographics are used to find how many levels of each stratification have been requested

Usage

add_scale_pars(
  par_tab,
  antibody_data,
  timevarying_demographics = NULL,
  scale_par_lower = -25,
  scale_par_upper = 25
)

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

antibody_data

the antibody data data frame, see example_antibody_data. If NULL, then uses timevarying_demographics

timevarying_demographics

a data frame of timevarying demographics, with columns individual, time and any stratification variables. If NULL, then uses antibody_data

scale_par_lower

the lower bound of any used scale parameters

scale_par_upper

the upper bound of any used scale parameters

Value

the updated par_tab


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