Estimate the true sero prevalence using Bayesian estimation
correct_prevalence(
data,
bayesian = TRUE,
init_se = 0.95,
init_sp = 0.8,
study_size_se = 1000,
study_size_sp = 1000,
chains = 1,
warmup = 1000,
iter = 2000
)
a list of 2 items
estimated parameters
data.frame containing age, the corresponding estimated seroprevalance, adjusted tot and pos
the input data frame, must either have `age`, `pos`, `tot` columns (for aggregated data) OR `age`, `status` for (linelisting data)
whether to adjust sero-prevalence using the Bayesian or frequentist approach. If set to `TRUE`, true sero-prevalence is estimated using MCMC.
sensitivity of the serological test
specificity of the serological test
(applicable when `bayesian=TRUE`) study size for sensitivity validation study (i.e., number of confirmed infected patients in the study)
(applicable when `bayesian=TRUE`) study size for specificity validation study (i.e., number of confirmed non-infected patients in the study)
(applicable when `bayesian=TRUE`) number of Markov chains
(applicable when `bayesian=TRUE`) number of warm up runs
(applicable when `bayesian=TRUE`) number of iterations
data <- rubella_uk_1986_1987
correct_prevalence(data)
Run the code above in your browser using DataLab