An exact (two-sided) test of the null hypothesis that the probability of success in a Bernoulli experiment is p.
Inputs:
- x – Number of successes (or a vector of length 2 giving the
- number of successes and number of failures respectively)
n – Number of trials (ignored if x has length 2) p – Hypothesized probability of success