Description Usage Arguments Details Value Author(s) See Also Examples
Simulates binomial data for testing confidence interval coverage.
1 |
M |
Number of simulations to create. |
n |
Vector of number of independent trials in the binomial experiment. |
p |
Probability of success under the null hypothesis. |
conf.level |
The level used in computing the confidence interval. |
methods |
The method used to compute power. |
... |
Additional arguments to pass to |
M
binomial observations are created using rbinom(M, n,
p)
. The average number of times a confidence interval covers
p
is returned.
The estimated coverage based on which method is requested.
Sundar Dorai-Raj (sdorairaj@gmail.com)
binom.confint
, binom.bayes
,
binom.logit
, binom.probit
, binom.coverage
1 | binom.sim(p = 0.95, method = "lrt")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.