Confidence interval of proportion, adjusted for zero- and one-inflation (Gelman et al. 2020)

prop_adj_ci(x, n, .width = 0.95)

Arguments

x

Number of successes

n

Number of tries

.width

Confidence level (defaults to .95)

References

Gelman A, Hill J, Vehtari A (2020). Regression and other stories. Cambridge University Press.