View source: R/mixture_model.R
estimate_from_mixture | R Documentation |
Refers to section 11.2 - 11.4
estimate_from_mixture(
age,
antibody_level,
threshold_status = NULL,
mixture_model,
s = "ps",
sp = 83,
monotonize = TRUE
)
age |
- vector of age |
antibody_level |
- vector of the corresponding raw antibody level |
threshold_status |
- sero status using threshold approach in line listing (optional, for visualization and comparison only) |
mixture_model |
- mixture_model object generated by serosv::mixture_model() |
s |
- smoothing basis used to fit antibody level |
sp |
- smoothing parameter |
monotonize |
- whether to monotonize seroprevalence (default to TRUE) |
a list of class estimated_from_mixture with the following items
df |
the dataframe used for fitting the model |
info |
a fitted "gam" model for mu(a) |
sp |
seroprevalence |
foi |
force of infection |
threshold_status |
serostatus using threshold method only if provided |
[mgcv::gam()] for more information about the fitted gam object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.