Skip to contents

Calculates the confidence interval for seroprevalence using the Wald method with continuity correction.

Usage

IC_SP_Waldcc(SP, n, conf.level = 0.95)

Arguments

SP

Seroprevalence estimate.

n

Sample size.

conf.level

Confidence level (default is 0.95).

Value

A vector with the lower and upper limits of the confidence interval.

Examples

IC_SP_Waldcc(0.25, 100, conf.level = 0.95)
#> [1] 0.1601311 0.3398689