combined.fdr: Calculating combined false positive rate based on Monte Carlo...

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

View source: R/combined.fdr.R

Description

The function returns the estimated false discovery rate for each category of testing results, given the operating characteristics of different testing methods.

Usage

1
combined.fdr(sens, specs, prev, size = 1e+06)

Arguments

sens

A vector of K sensitivity values for K different testing methods.

specs

A vector of K specificity values for K different testing methods, with the order of the methods same as in sens.

prev

Prevalence of true positives.

size

A large integer for Monte Carlo sampling. Default: 1 million.

Value

FDR estimates for each category of testing results combination.

Note

The function is based on Monte Carlo sampling estimation. Make sure a sufficiently large size is given.

Author(s)

Zhijian Yang, Xia Shen

References

Yang Z, Xu W, Zhai R, Li T, Ning Z, Pawitan Y, Shen X (2020). Triangulation of analysis strategies links complex traits to specific tissues and cell types. Submitted.

See Also

triangulate

Examples

1
2
3
4
5
6
7
## Not run: 

combined.fdr(c(.5,.6,.7), c(.5,.4,.3), .5)
#        000        001        010        011        100        101        110        111
# 0.50135036 0.50012141 0.49931784 0.49982606 0.49945863 0.49953203 0.50014472 0.50040443

## End(Not run)

xiashen/triangulation documentation built on Aug. 30, 2020, 2:13 a.m.