Description Usage Arguments Value Constraints See Also Examples
Performs an exact test of a simple null hypothesis about the probability of success in a Bernoulli experiment.
1 2 | binom.test(x, n, p = 0.5, alternative = c("two.sided", "less", "greater",
"LT", "GT", "EXACT"), conf.level = 0.95)
|
x |
FLVector |
n |
number of trials |
p |
hypothesized probability of success |
alternative |
indicates the alternative hypothesis and must be one of "two.sided", "greater" or "less". Additionally "LT","GT","EXACT" are supported for FL objects. |
conf.level |
confidence level for the returned confidence interval. Not Applicable for FL objects. |
A list with class "FLhtest"
conf.level is not supported currently for FL objects. print is not working for result htest object
binom.test
for R reference implementation.
1 2 3 4 | flv <- as.FLVector(sample(1:50,10,replace=T))
ResulthtestObject <- binom.test(flv,100,p=0.65)
ResulthtestObject <- binom.test(flv,100,p=0.65,"greater")
ResulthtestObject <- binom.test(flv,100,p=0.65,"LT")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.