confidence_binomial {arkhe} | R Documentation |
Computes a Wald interval for a proportion at a desired level of significance.
confidence_binomial(object, ...)
## S4 method for signature 'numeric'
confidence_binomial(
object,
n,
level = 0.95,
method = "wald",
corrected = FALSE
)
object |
A |
... |
Currently not used. |
n |
A length-one |
level |
A length-one |
method |
A |
corrected |
A |
A length-two numeric
vector giving the lower and upper confidence
limits.
N. Frerebeau
Other summary statistics:
confidence_mean()
,
confidence_multinomial()
,
interval_credible()
,
interval_hdr()
## Confidence interval for a mean
x <- seq(from = -4, to = 4, by = 0.01)
y <- dnorm(x)
confidence_mean(y, type = "student")
confidence_mean(y, type = "normal")
## Confidence interval for a propotion
confidence_binomial(118, n = 236)
x <- c(35, 74, 22, 69)
confidence_multinomial(x)