binom.test: Binomial Test

Description Usage Arguments Value Constraints See Also Examples

Description

Performs an exact test of a simple null hypothesis about the probability of success in a Bernoulli experiment.

Usage

1
2
binom.test(x, n, p = 0.5, alternative = c("two.sided", "less", "greater",
  "LT", "GT", "EXACT"), conf.level = 0.95)

Arguments

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.

Value

A list with class "FLhtest"

Constraints

conf.level is not supported currently for FL objects. print is not working for result htest object

See Also

binom.test for R reference implementation.

Examples

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")

Fuzzy-Logix/AdapteR documentation built on May 6, 2019, 5:07 p.m.