Biphasic antibody boosting-waning model. This model assumes that for each exposure there is a set of long-term boost, long-term waning, short-term boost, and short-term waning parameters

antibody_model_biphasic(
  i,
  t1,
  b,
  immune_histories,
  biomarker_states,
  kinetics_parameters,
  biomarker_map,
  ...
)

Arguments

i

individual

t1

time

b

biomarker

immune_histories

An array of immune histories across all individuals, time steps and exposure IDs

biomarker_states

An array of biomarker states (biomarker quantities) across all individuals, time steps and biomarker IDs

kinetics_parameters

A tibble of parameters needed for the antibody kinetics model for all biomarkers

biomarker_map

A table specifying the relationship between exposure IDs and biomarker IDs

...

Additional arguments

Value

A biomarker quantity is returned

Examples

model_pars <- reformat_biomarker_map(example_model_pars_biphasic)
tmp_pars <- list()
tmp_pars[[1]] <- draw_parameters_fixed_fx_biomarker_dep(1,1,1,NULL, NULL,model_pars)
antibody_model_biphasic(1,1,1,example_immune_histories_wide, example_biomarker_states_wide,
tmp_pars, model_pars)
#> [1] 0.07500098