estimateAPR: Simple Estimation of the Average Power Rate

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/interim_and_survival_package_functions.R

Description

Function for estimating the Average Power Rate (APR), also called Sensitivity. Similar to the FDR estimator of Storey and Tibshirani (2003).

Usage

1
2
  estimateAPR(alpha, p_values, p_values_adjusted,
    lambda = 0.5)

Arguments

alpha

the type I error level

p_values

the raw p-values from the tests at level alpha

p_values_adjusted

the p-values adjusted for multiple testing

lambda

a tuning parameter. Default value 0.5 as suggested by Storey and Tibshirany (2003)

Value

The estimated APR, which is a single value in [0,1]

Author(s)

Andreas Leha andreas.leha@med.uni-goettingen.de

References

Storey, J. D. and R. Tibshirani (2003): "Statistical significance for genomewide studies", Proceedings of the National Academy of Sciences of the United States of America, 100, 9440-9445.

See Also

estimateFDR

Examples

1
2
3
4
5
6
## generate some p-values
p_values <- runif(100)
p_values_adjusted <- p.adjust(p_values, method="BH")

## estimate the power
## Not run: estimateAPR(alpha=0.05, p_values=p_values, p_values_adjusted=p_values_adjusted)

survGenesInterim documentation built on May 2, 2019, 5:22 p.m.