simresp.tinf {serocalculator} | R Documentation |
simulate antibody kinetics of y over a time interval
Description
simulate antibody kinetics of y over a time interval
Usage
simresp.tinf(
lambda,
t.end,
age.fx,
antigen_isos,
n.mc = 0,
renew.params,
predpar,
...
)
Arguments
lambda |
seroconversion rate (1/days), |
t.end |
end of time interval (beginning is time 0) in days(?) |
age.fx |
parameter estimates for fixed age (age.fx in years) or not. when age.fx = NA then age at infection is used. |
antigen_isos |
antigen isotypes |
n.mc |
a posterior sample may be selected (1:4000), or not when n.mc = 0 a posterior sample is chosen at random. |
renew.params |
At infection, a new parameter sample may be generated (when |
predpar |
an
|
... |
Arguments passed on to
|
Value
This function returns a list()
with:
t = times (in days, birth at day 0),
b = bacteria level, for each antibody signal (not used; probably meaningless),
y = antibody level, for each antibody signal
smp = whether an infection involves a big jump or a small jump
t.inf = times when infections have occurred.