creates a confidence level for the mean of independent binary data, using the exact test (which yields intervals that are a little conservative for small sample sizes, but guaranteed to capture >= 0.95 probability)
1 | bin_int(x, conf.int = 0.95)
|
x |
a vector of (numeric) binary 0s and 1s |
conf.int |
the size of the confidence interval |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.