fdp-pwr: Calculates false-discovery proportions and statistical power

Description Usage Arguments Value Examples

Description

Calculates false-discovery proportions and statistical power

Usage

1
2
3
fdp(rej, support)

pwr(rej, support)

Arguments

rej

integer indices of rejected hypotheses

support

integer indices of the underlying true hypotheses (with true alternative hypotheses)

Value

fdp returns the false-discovery proportions and pwr returns statistical power

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# Underlying support is the first 100 hypotheses, but the rejection is
# 2 to 101
support <- 1:100
rejection <- c(2:101)

# Total rejection (length(rejection)) is 100; false rejection is 1
# FDP = 1/100
fdp(rejection, support)

# True positives = 99, total true hypotheses is 100
# power is 99/100
pwr(rejection, support)

dipterix/focr documentation built on Dec. 20, 2021, 12:03 a.m.