findcr {sensR}R Documentation

Find the critical value of a one-tailed binomial test

Description

Finds the critical value in a one-tailed binomial test

Usage

findcr(sample.size, alpha = .05, p0 = .5)

Arguments

sample.size the sample size of the binomial test (must be a positve integer)
alpha the type I error-level of the test (must be between zero and one)
p0 the binomial probability under the null-hypothesis (must be between zero and one); 1/2 for the duotrio and twoAFC tests and 1/3 for the triangle and threeAFC tests

Value

The critical value in a one-tailed binomial test, that is, the smallest integer such that the null hypothesis binomial probability of being larger than or equal to this number is smaller than or equal to the type I error-level of the test

Author(s)

Rune Haubo B Christensen and Per Bruun Brockhoff

See Also

triangle, twoAFC, threeAFC, duotrio, discrim, discrimPwr, discrimSim, AnotA discrimSS, samediff

Examples

## Find the critical value for a triangle test for the level 0.05 test 
## with 25 subjects:
findcr(sample.size = 25, , p0 = 1/3) 

[Package sensR version 1.0.0 Index]