Skip to contents

Calculates the confidence interval for the seroconversion rate (SCR) using the confidence interval of seroprevalence.

Usage

IC_SCR(SP_interval, SRR, ages, A_max, limits = c(0, 1))

Arguments

SP_interval

A vector with the lower and upper limits of seroprevalence.

SRR

Seroreversion rate.

ages

Vector with the proportions of different ages in the population (age structure).

A_max

Maximum age considered in the population.

limits

Lower and upper limits for the calculation of SCR.

Value

A vector with the lower and upper limits for the seroconversion rate SCR.

Examples

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))
#> [1] 0.003433113 0.007502935