binconr | R Documentation |
bincon
formatterBinomial confidence interval (bincon
) formatter.
Note that this function will also calculate confidence intervals for
two-stage designs by method="two-stage"
. If both r
and
n
are length 2, a two-stage design is assumed. If r
and
n
are not both length 1 or 2, the function will fail. For vector
inputs, see bincon
.
binconr(
r,
n,
conf = 0.95,
digits = 0L,
est = TRUE,
frac = FALSE,
show_conf = TRUE,
pct.sign = TRUE,
method = "exact",
percent = TRUE
)
r |
number of responses (successes) |
n |
number of observations (trials) |
conf |
level of confidence |
digits |
number of digits |
est |
logical; if |
frac |
logical; if |
show_conf |
logical; if |
pct.sign |
logical; if |
method |
method to use (default is exact); see |
percent |
logical; if |
bincon
; binconf
binconr(5, 10)
binconr(5, 10, percent = FALSE)
binconr(5, 10, 0.90, est = FALSE)
binconr(45, 53, digits = 1, conf = 0.975)
binconr(45, 53, show_conf = FALSE, frac = TRUE)
## length 2 vectors assume two-stage confidence intervals
binconr(c(15, 45), c(20, 33), show_conf = FALSE, frac = TRUE)
## compare
rawr:::twocon(20, 33, 15, 45)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.