Refers to section 11.2 - 11.4
estimate_from_mixture(
age,
antibody_level,
threshold_status = NULL,
mixture_model,
s = "ps",
sp = 83,
monotonize = TRUE
)a list of class estimated_from_mixture with the following items
the dataframe used for fitting the model
a fitted "gam" model for mu(a)
seroprevalence
force of infection
serostatus using threshold method only if provided
- vector of age
- vector of the corresponding raw antibody level
- sero status using threshold approach in line listing (optional, for visualization and comparison only)
- mixture_model object generated by serosv::mixture_model()
- smoothing basis used to fit antibody level
- smoothing parameter
- whether to monotonize seroprevalence (default to TRUE)
[mgcv::gam()] for more information about the fitted gam object