| binom.test(ctest) | R Documentation |
binom.test performs an exact test of the null that the
probability of success in a Bernoulli experiment of length n
is p, based on the number x of successes observed.
binom.test(x, n, p = 0.5, alternative = "two.sided")
x |
number of successes. |
n |
number of trials. |
p |
probability of success. |
alternative |
indicates the alternative hypothesis and must be
one of "two.sided", "greater" or "less".
You can specify just the initial letter. |
"htest" containing the following
components:
statistic |
the number of successes, x. |
parameter |
the number of trials, n. |
p.value |
the p-value of the test. |
null.value |
the probability of success under the null,
p. |
alternative |
a character string describing the alternative hypothesis. |
method |
the string "Exact binomial test". |
data.name |
a character string giving the names of the data. |