wrapBinomTestS: Wrap binom.test (test of Binomial/Bernoulli rate) from...

View source: R/BinomTest.R

wrapBinomTestSR Documentation

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

Description

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

Usage

wrapBinomTestS(
  x,
  n,
  ...,
  p = NA,
  alternative = c("two.sided", "less", "greater"),
  conf.level = 0.95
)

Arguments

x

numeric scalar, number of successes.

n

numeric scalar, number 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

Value

wrapped stat

See Also

wrapBinomTest, wrapBinomTest.htest, wrapBinomTestS, wrapBinomTest.logical, wrapBinomTest.numeric, wrapBinomTest.data.frame

Examples


wrapBinomTestS(3, 7, p = 0.5)
wrapBinomTestS(300, 700, p = 0.5)



sigr documentation built on Aug. 20, 2023, 9:06 a.m.