R/utils.R
prop_adj_ci.Rd
Confidence interval of proportion, adjusted for zero- and one-inflation (Gelman et al. 2020)
prop_adj_ci(x, n, .width = 0.95)
x | Number of successes |
---|---|
n | Number of tries |
.width | Confidence level (defaults to .95) |
Gelman A, Hill J, Vehtari A (2020). Regression and other stories. Cambridge University Press.