50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

dks (version 1.18.0)

pprob.uniform: Bayesian diagnostic test for multiple testing p-values.

Description

This function accepts a vector of simulated null p-values from a single simulated study. The null p-values should representa subset of all the simulated p-values corresponding to the tests with no signal.

Usage

pprob.uniform(p,alpha=c(0.1,10),beta=c(0.1,10),eps=1e-10)

Arguments

p
An vector of null p-values from a single simulated study.
alpha
The range of the first parameter for the prior on the beta distribution.
beta
The range of the second parameter for the prior on the beta distribution.
eps
Maximum integration error when computing the posterior distribution.

Value

pp
The posterior probability that p is a sample from the uniform distribution.

Details

The pprob.uniform function calculates the posterior probability that a set of null p-values come from the uniform distribution as described in Leek and Storey (2009). The p-values should be simulated from a realistic distribution and only the null p-values should be passed to the pprob.uniform function.

References

J.T. Leek and J.D. Storey, "The Joint Null Distribution of Multiple Hypothesis Tests."

See Also

dks, dks.pvalue, pprob.dist,cred.set

Examples

Run this code
  ## Load data
  data(dksdata) 
  pp <- pprob.uniform(P[,1])
  hist(pp)

Run the code above in your browser using DataLab