btest: Binomial Test

Description Usage Arguments Value Examples

View source: R/main.r

Description

A wrapper around binom.test that ensures that n!=0 and that k is at least a minimum number.

Usage

1
btest(k, n, p, kmin = 10, nmin = 600)

Arguments

k

count

n

total

p

prob

kmin

minimum k cut off

nmin

minimum n cut off

Value

a atomic numeric p-value

Examples

1
2
3
4
5
6
7
8
## How many times are two motifs found D base pairs apart
frequencyAtD<-10
## How may times are two motifs found any D appart
possibleAtD<-200
## If one motif distance was computed what is the probability of it
## being D
probabilityAtD<-0.03
btest(frequencyAtD,possibleAtD,probabilityAtD)

alexjgriffith/mT1 documentation built on Dec. 10, 2017, 8:29 p.m.