Estimate.EDR.from.pilot: Estimate EDR based on p values

Description Usage Arguments Value

Description

Estimate EDR based on p values

Usage

1
2
Estimate.EDR.from.pilot(res, N0, target.N, thresh.p = 0.005,
  FDR = 0.05, M = 10)

Arguments

res

the result from DMR analysis

N0

the sample size of the pilot data per group. If the two groups of the pilot data have different sample size, input can be a vector of length 2 specifying the sample size for each group.

target.N

the target sample size per group. Input can be a vector. If the targeted sample size is unbalanced, the input is a matrix of two columns

thresh.p

the threshold for CBUM mixture model fitting, default is set to 0.005

FDR

the level of False discovery rate to control, by default it is set to 0.05

M

the time of parametric bootstrap, default is 10

Value

A list of 3 element. The first element is a matrix of EDR, the second element is a matrix of declared Number of DMR, the third element is a matrix of empirical FDR.


liupeng2117/MethylSeqDesign documentation built on May 29, 2019, 3:42 a.m.