lambda
|
a numeric() scalar indicating the incidence rate (in events per person-years)
|
n_samples
|
number of samples to simulate
|
age_range
|
age range of sampled individuals, in years
|
age_fixed
|
specify the curve parameters to use by age (does nothing at present?)
|
antigen_isos
|
Character vector with one or more antibody names. Values must match curve_params.
|
n_mcmc_samples
|
how many MCMC samples to use:
-
when n_mcmc_samples is in 1:4000 a fixed posterior sample is used
-
when n_mcmc_samples = 0, a random sample is chosen
|
renew_params
|
whether to generate a new parameter set for each infection
-
renew_params = TRUE generates a new parameter set for each infection
-
renew_params = FALSE keeps the one selected at birth, but updates baseline y0
|
add_noise
|
a logical() indicating whether to add biological and measurement noise
|
curve_params
|
a data.frame() of MCMC samples of antibody decay curve parameters, with one row per MCMC sample. Required columns: antigen_iso, y0, y1, t1, alpha, r. See load_sr_params() for details.
|
noise_limits
|
biologic noise distribution parameters
|
format
|
a character() variable, containing either:
|
verbose
|
verbosity level for console logging. Accepts a logical scalar or a non-negative whole number:
|
…
|
Arguments passed on to simcs.tinf, ldpar, ab, mk_baseline
-
age
-
age at infection
-
nmc
-
mcmc sample to use
-
npar
-
number of parameters
-
t
-
numeric vector of elapsed times since start of infection
-
par
-
numeric matrix of model parameters:
-
rows are parameters
-
columns are biomarkers
-
kab
-
integer indicating which row to read from
blims
-
n
-
number of observations
-
blims
-
range of possible baseline antibody levels
|