powered by
Wrap binom.test (test of Binomial/Bernoulli rate).
# S3 method for data.frame wrapBinomTest( x, ColumnName, SuccessValue = TRUE, ..., p = NA, alternative = c("two.sided", "less", "greater"), conf.level = 0.95, na.rm = FALSE )
wrapped stat
data.frame
character name of measurment column
value considered a success (positive)
extra arguments passed to binom.test
number, hypothesized probability of success.
passed to binom.test
binom.test
logical, if TRUE remove NA values
wrapBinomTest, wrapBinomTest.htest, wrapBinomTestS, wrapBinomTest.logical, wrapBinomTest.numeric, wrapBinomTest.data.frame
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)
Run the code above in your browser using DataLab