simes_pval: Calculate region-level p-value

View source: R/simes_pval.R

simes_pvalR Documentation

Calculate region-level p-value

Description

This function uses the Simes method to calculate a regional-level p-value based on the single-eBayes p-values. It highly depends on the choice of maxGap in find_dames.

Usage

simes_pval(sat, smtstat, midpt)

Arguments

sat

Output from get_tstats.

smtstat

(Smoothed) tstat vector from get_tstats.

midpt

Coordinate vector for each CpG site/tuple.

Details

When used as a FDR-control method, for positively correlated P-values, Simes method is even closer to the nominal alpha level than the Bonferroni-Holm method.

Value

Vector of summarized pvals


markrobinsonuzh/DAMEfinder documentation built on April 7, 2023, 6:37 a.m.