| wrapBinomTest.numeric {sigr} | R Documentation | 
Wrap binom.test (test of Binomial/Bernoulli rate).
Description
Wrap binom.test (test of Binomial/Bernoulli rate).
Usage
## S3 method for class 'numeric'
wrapBinomTest(
  x,
  SuccessValue = TRUE,
  ...,
  p = NA,
  alternative = c("two.sided", "less", "greater"),
  conf.level = 0.95,
  na.rm = FALSE
)
Arguments
| x | numeric, vector of trials. | 
| 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 | 
Value
wrapped stat
See Also
wrapBinomTest, wrapBinomTest.htest, wrapBinomTestS, wrapBinomTest.logical, wrapBinomTest.numeric, wrapBinomTest.data.frame
Examples
x = c(rep(0, 3), rep(1, 7))
wrapBinomTest(x, 1)
x = c(rep(0, 15), rep(1, 35))
wrapBinomTest(x, 1)
[Package sigr version 1.1.5 Index]