# Example without a data frame
nemsqa_binomial_confint(data = NULL,
x = c(5, 10, 20),
n = c(50, 100, 200),
method = "wilson"
)
# Example with a data.frame
data <- data.frame(successes = c(5, 10, 20), trials = c(50, 100, 200))
nemsqa_binomial_confint(data,
x = successes,
n = trials,
method = "clopper-pearson"
)
Run the code above in your browser using DataLab