p.tpm: CDF of truncated product method statistic under the null...

Description Usage Arguments Value References See Also Examples

Description

CDF of truncated product method statistic under the null hypothesis.

Usage

1
p.tpm(q, n, tau1, M = NULL)

Arguments

q

- quantile, could be a vector.

n

- dimension parameter, i.e. the number of p-values to be combined.

tau1

- truncation parameter. 0 < tau1 <= 1.

M

- correlation matrix of the input statistics. Default = NULL assumes independence.

Value

The left-tail probability of the null distribution of truncated product method statistic at the given quantile.

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–185. doi:10.1002/gepi.0042

See Also

stat.tpm for the definition of the statistic.

Examples

1
2
3
4
5
pval <- runif(100)
tpmstat <- stat.tpm(p=pval, tau1=0.05)
p.tpm(q=tpmstat, n=100, tau1=0.05)
M = matrix(0.3,100,100) + diag(1-0.3,100)
p.tpm(q=tpmstat, n=100, tau1=0.05, M=M)

Example output

[1] 0.3806284
[1] 0.6116182

TFisher documentation built on May 2, 2019, 12:20 p.m.

Related to p.tpm in TFisher...