Estimate seroprevalence and foi by combining mixture model and regression
Source:R/mixture_model.R
estimate_from_mixture.Rd
Refers to section 11.2 - 11.4
Usage
estimate_from_mixture(
age,
antibody_level,
threshold_status = NULL,
mixture_model,
s = "ps",
sp = 83,
monotonize = TRUE
)
Arguments
- 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)