hrStat | R Documentation |
Computes the UMP p-value pooling statistic for a restricted beta family.
hrStat(p, w = 1)
p |
numeric vector of p-values between 0 and 1 |
w |
numeric value between 0 and 1 |
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.
A numeric value giving the pooled statistic.
Chris Salahub
p <- c(0.1, 0.5, 0.9)
hrStat(p, 0.2)
hrStat(p, 0.5)
hrStat(p, 0.9)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.