wrapBinomTest.logical: Wrap binom.test (test of Binomial/Bernoulli rate).

View source: R/BinomTest.R

wrapBinomTest.logicalR Documentation

Wrap binom.test (test of Binomial/Bernoulli rate).

Description

Wrap binom.test (test of Binomial/Bernoulli rate).

Usage

## S3 method for class 'logical'
wrapBinomTest(
  x,
  ...,
  p = NA,
  alternative = c("two.sided", "less", "greater"),
  conf.level = 0.95,
  na.rm = FALSE
)

Arguments

x

logical, vector of trials.

...

extra arguments passed to binom.test

p

number, hypothesized probability of success.

alternative

passed to binom.test

conf.level

passed to binom.test

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(FALSE, 3), rep(TRUE, 7))
wrapBinomTest(x)
x = c(rep(FALSE, 15), rep(TRUE, 35))
wrapBinomTest(x)



WinVector/sigr documentation built on Aug. 29, 2023, 3:57 a.m.