Generate seropositivity counts by bin given the probability and sample size per age group bin
get_seroprev_counts_by_bin(
prob_seroprev_by_age,
sample_size_by_age_random,
survey_features
)Probability of seropositivity by age
Random sample size by age
A dataframe containing information about the binned age groups and sample sizes for each. It should contain columns:
Left limits of the age groups to be considered in the serosurvey
Right limits of the age groups to be considered in the serosurvey
Number of samples by age group
The resulting age intervals are closed to the left [ and
open to the right ).