powered by
Calculates the confidence interval for a seroprevalence estimate with a specified confidence level.
IC_SP(SP, n, conf.level = 0.95, method = "asymptotic")
A vector with the lower and upper limits of the confidence interval.
Seroprevalence estimate.
Sample size.
Confidence level (default is 0.95).
Method for calculating the confidence interval (default is "asymptotic"). Available methods: c("asymptotic","exact","ac","wilson","logit","cloglog")
The methods available in this function are some of the available in the binom package. For more information, see https://CRAN.R-project.org/package=binom
IC_SP(0.25, 100, conf.level = 0.95, method = "asymptotic")
Run the code above in your browser using DataLab