fdr_p: Internal functions for p-value and FDR estimation

Description Usage Arguments Value References

Description

Internal functions for p-value and FDR estimation

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
.fdr.qu(
  s0,
  stats,
  beta = 0.05,
  na.rm = FALSE,
  ref.vector = sort(s0, decreasing = TRUE, na.last = TRUE)
)

.fdr.q(
  s0,
  stats,
  beta = 0.05,
  na.rm = FALSE,
  ref.vector = sort(s0, decreasing = TRUE, na.last = TRUE)
)

.pFdr(s0, stats, method, pooled, na.rm, beta)

Arguments

s0

numeric vector of original (non-rotated) statistics.

stats

numeric matrix of rotated statistics.

beta

numeric between 0 and 1. See \insertCiteYekutieli1999randRotation.

na.rm

logical. Should missing values be removed ?

ref.vector

Reference vector defining at which grid points of s0 and (stats) the FDRs are approximated. All other points are approximated by spline interpolation. NAs are removed from ref.vector

method

A p-value or FDR adjustment method, see pFdr.

pooled

logical. TRUE if marginal distributions are exchangeable for all features so that rotated stats can be pooled, see pFdr.

Value

numeric vector of (adjusted) p-value or FDR estimations for s0.

References

\insertAllCited
randRotation documentation built on April 14, 2021, 6:01 p.m.