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

View source: R/Estimate.EDR.from.pilot.R

Estimate.EDR.from.pilotR Documentation

Estimate EDR based on p values

Description

Estimate EDR based on p values

Usage

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

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

restrict

restrict lambda value, default is FALSE

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 June 28, 2023, 7:09 a.m.