Adds seroprevalence values with corresponding binomial confidence interval
prepare_serosurvey_for_plot(serosurvey, alpha = 0.05)serosurvey with additional columns:
Seroprevalence computed as the proportion of positive
cases n_seropositive in the number of samples
n_sample for each age group
Lower limit of the binomial confidence interval
of seroprev
Upper limit of the binomial confidence interval
of seroprev
survey_yearYear in which the survey took place (only needed to plot time models)
age_minFloor value of the average between age_min and age_max
age_maxThe size of the sample
n_sampleNumber of samples for each age group
n_seropositiveNumber of positive samples for each age group
1 - alpha indicates the confidence level to be used