getFdr: Calculate tail-area (Fdr) and local (fdr) false discovery...

View source: R/F_getFdr.R

getFdrR Documentation

Calculate tail-area (Fdr) and local (fdr) false discovery rates, based on a certain null distribution

Description

Calculate tail-area (Fdr) and local (fdr) false discovery rates, based on a certain null distribution

Usage

getFdr(
  statObs,
  fitAll,
  fdr,
  p,
  p0,
  zValsDensObs,
  smoothObs,
  assumeNormal,
  fitObs,
  ...
)

Arguments

statObs

Vector of observed z-values

fitAll

The parameters of the estimated random null

fdr

local false discovery rate, already estimated

p

the number of hypotheses

p0

The estimated fraction of null hypotheses

zValsDensObs

estimated densities of observed test statistics

smoothObs

A boolean, should estimated observed densities of the test statistics be used in estimating the Fdr

assumeNormal

A boolean, should normality be assumed for the null distribution?

fitObs

The kernel density estimate object of all test statistics

...

more arguments, ignored

Value

A list with components

Fdr

Tail are false discovery rate

fdr

Local false discovery rate


CenterForStatistics-UGent/rransi documentation built on Nov. 13, 2023, 2:07 a.m.