calcBinomCI: Calculate a binomial confidence interval

Description Usage Arguments Value

View source: R/utils.R

Description

Given an observed proportion (p) and a number of trials (n), calculate the half-width of a (z)% binomial confidence interval

Usage

1
calcBinomCI(p, n, z = 1.96)

Arguments

p

The observed proportion

n

The total number of samples/trials used to calculate the proportion

z

The quantile of a standard normal distribution

Value

A singular numeric value representing the half-width of the CI


immunogenomics/scpost documentation built on July 28, 2021, 4:03 a.m.