Learn R Programming

TFisher (version 0.2.0)

stat.tpm: Construct truncated product method statistic.

Description

Construct truncated product method statistic.

Usage

stat.tpm(p, tau1)

Arguments

p

- input p-values.

tau1

- truncation parameter. 0 < tau1 <= 1.

Value

Truncated product method statistic.

Details

Let \(p_{i}\), \(i = 1,...,n\) be a sequence of p-values, the TPM statistic $$TPM = \sum_{i=1}^n -2\log(p_i)I(p_i\leq\tau_2)$$. TPM is the special case of TFisher when tau2=1.

References

1. Hong Zhang and Zheyang Wu. "TFisher Tests: Optimal and Adaptive Thresholding for Combining p-Values", submitted.

2. Zaykin, D.V., Zhivotovsky, L. A., Westfall, P.H. and Weir, B.S. (2002), Truncated product method for combining P-values. Genet. Epidemiol., 22: 170<U+2013>185. doi:10.1002/gepi.0042

Examples

Run this code
# NOT RUN {
pval <- runif(100)
stat.tpm(p=pval, tau1=0.05)
# }

Run the code above in your browser using DataLab