Computes the UMP p-value pooling statistic for a
restricted beta family.
Usage
hrStat(p, w = 1)
Value
A numeric value giving the pooled statistic.
Arguments
p
numeric vector of p-values between 0 and 1
w
numeric value between 0 and 1
Author
Chris Salahub
Details
To test the null hypotheses that all p-values are uniform
against a restricted beta family 0 < a <= 1 <= b, the most
powerful pooled p-value linearly combines upper and lower tail
probabilities of the chi-squared distribution with two degrees
of freedom with weights w and (1 - w) where w = (1 - a)/(b - a).
This function computes the statistic given by this combination
for a collection of p-values, simulation or approximation is
required to convert this to a p-value.