opt: Optimal P-value combination Test (OPT)

Description Usage Arguments Value Examples

View source: R/opt.R

Description

Optimal P-value combination Test (OPT)

Usage

1
opt(p, lower.alpha = 0.01, upper.alpha = 1e+08, rep = 10000)

Arguments

p

p-values to be combined

lower.alpha

minimum alpha value considered in the test

upper.alpha

maximum alpha value considered in the test

rep

number of replicates to estimate the p-value using resampling

Value

the estimated test statistic, the alpha and the c values, the p-value of the test

Examples

1
2
p=c(0.1,0.2,0.3)
opt(p,rep=1e3)

zchen2020/opt documentation built on Feb. 5, 2022, 12:50 a.m.