Description Usage Arguments Value

Estimate EDR based on p values

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

`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 |

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.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.