Description Usage Arguments Value Examples
View source: R/estimateSeroincidence.R
Function to estimate seroincidences based on cross-section serology data and longitudinal response model.
1 2 | estimateSeroincidence(data, antibodies, strata = "", params, censorLimits,
par0, start = -6, numCores = 1L)
|
data |
Data frame with cross-sectional serology data per antibody and age, and additional
columns to identify possible |
antibodies |
Character vector with one or more antibody names. Values must match |
strata |
Character vector of strata. Values must match with |
params |
List of data frames of all longitudinal parameters. Each data frame contains Monte Carlo samples for each antibody type. |
censorLimits |
List of cutoffs for one or more named antibody types (corresponding to
|
par0 |
List of parameters for the (lognormal) distribution of antibody concentrations
for true seronegatives (i.e. those who never seroconverted), by named antibody type
(corresponding to |
start |
A starting value for |
numCores |
Number of processor cores to use for calculations when computing by strata. If set to more than 1 and package parallel is available, then the computations are executed in parallel. Default = 1L. |
A set of lambda estimates for each strata.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## Not run:
estimateSeroincidence(data = csData,
antibodies = c("IgG", "IgM", "IgA"),
strata = "",
params = campylobacterDelftParams4,
censorLimits = cutOffs,
par0 = baseLn,
start = -4)
estimateSeroincidence(data = csData,
antibodies = c("IgG", "IgM", "IgA"),
strata = "",
params = campylobacterDelftParams4,
censorLimits = cutOffs,
par0 = baseLn,
start = -4,
numCores = parallel::detectCores())
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.