Exact test of a simple null hypothesis about the probability of success in Bernoulli trials. Equivalent to R's binom.test().
binom.test()
Number of successes, or [successes, failures].
[successes, failures]
Optional
Number of trials (ignored when x has two elements; may then be omitted and the options passed in its place).
x
See BinomTestOptions.
binomTest(682, 925, { p: 0.75 }).pValue; // 0.3824916 Copy
binomTest(682, 925, { p: 0.75 }).pValue; // 0.3824916
Exact test of a simple null hypothesis about the probability of success in Bernoulli trials. Equivalent to R's
binom.test().