btest: Binomial Test

Description Usage Arguments Value Examples

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 May 10, 2019, 8:53 a.m.