powered by
Calculates the confidence interval for the seroconversion rate (SCR) using the confidence interval of seroprevalence.
IC_SCR(SP_interval, SRR, ages, A_max, limits = c(0, 1))
A vector with the lower and upper limits for the seroconversion rate SCR.
SCR
A vector with the lower and upper limits of seroprevalence.
Seroreversion rate.
Vector with the proportions of different ages in the population (age structure).
Maximum age considered in the population.
Lower and upper limits for the calculation of SCR.
A_max <- 80 age_distribution <- rep(1 / A_max, A_max) IC_SCR(c(0.1, 0.2), 0.01, age_distribution, A_max, limits = c(0, 1))
Run the code above in your browser using DataLab