pmultinom: Call C programs to R.

Description Usage Arguments Value Author(s) Examples

View source: R/pmultinom.R

Description

Call C programs to R for calculate p-value of each bin with multinomial distribution.

Usage

1
2
pmultinom(T, SIZE,length, P1, P2, P3, P4, C1, C2,
 pvalue=rep(0,length(T)))

Arguments

T

Statistic.

SIZE

The sum of MeDIP-seq count and MRE-seq count of each bin of two samples.

length

The number of bins.

P1

The probability of MeDIP-seq of sample 1 in multinomial distribution.

P2

The probability of MeDIP-seq of sample 2 in multinomial distribution.

P3

The probability of MRE-seq of sample 1 in multinomial distribution.

P4

The probability of MRE-seq of sample 2 in multinomial distribution.

C1

A constant to balance MeDIP-seq of sample 1 and sample 2.

C2

A constant to balance MRE-seq of sample 1 and sample 2.

pvalue

p-values of windows.

Value

p-value.

Author(s)

Yan Zhou, Bo Zhang, Nan Lin, BaoXue Zhang and Ting Wang

Examples

1
2
3
4
5
6
7
8
T<-4
SIZE<-200
p<-c(0.25,0.25,0.25,0.25)
c1<-1
c2<-1
length<-1
f<-pmultinom(T, SIZE,length, p[1], p[2], p[3], p[4], c1,
 c2, pvalue=rep(0,length(T)))

methylMnM documentation built on Nov. 8, 2020, 6:47 p.m.