prepare_serosurvey_for_plot {serofoi} | R Documentation |
Prepares serosurvey for plotting
Description
Adds seroprevalence values with corresponding binomial confidence interval
Usage
prepare_serosurvey_for_plot(serosurvey, alpha = 0.05)
Arguments
serosurvey |
|
alpha |
1 - alpha indicates the confidence level to be used |
Value
serosurvey with additional columns:
- seroprev
Seroprevalence computed as the proportion of positive cases
n_seropositive
in the number of samplesn_sample
for each age group- seroprev_lower
Lower limit of the binomial confidence interval of
seroprev
- seroprev_upper
Upper limit of the binomial confidence interval of
seroprev
[Package serofoi version 1.0.3 Index]