wrapBinomTest.data.frame | R Documentation |
Wrap binom.test (test of Binomial/Bernoulli rate).
## S3 method for class 'data.frame'
wrapBinomTest(
x,
ColumnName,
SuccessValue = TRUE,
...,
p = NA,
alternative = c("two.sided", "less", "greater"),
conf.level = 0.95,
na.rm = FALSE
)
x |
data.frame |
ColumnName |
character name of measurment column |
SuccessValue |
value considered a success (positive) |
... |
extra arguments passed to binom.test |
p |
number, hypothesized probability of success. |
alternative |
passed to |
conf.level |
passed to |
na.rm |
logical, if TRUE remove NA values |
wrapped stat
wrapBinomTest
, wrapBinomTest.htest
, wrapBinomTestS
, wrapBinomTest.logical
, wrapBinomTest.numeric
, wrapBinomTest.data.frame
d <- data.frame(x = c(rep(0, 3), rep(1, 7)))
wrapBinomTest(d, "x", 1, p = 0.5)
d <- data.frame(x = c(rep(0, 15), rep(1, 35)))
wrapBinomTest(d, "x", 1, p = 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.