Description Usage Arguments Details Value Author(s) References See Also Examples
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.
1 | pprob.uniform(p,alpha=c(0.1,10),beta=c(0.1,10),eps=1e-10)
|
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. |
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.
pp |
The posterior probability that p is a sample from the uniform distribution. |
Jeffrey T. Leek jleek@jhsph.edu
J.T. Leek and J.D. Storey, "The Joint Null Distribution of Multiple Hypothesis Tests."
dks
, dks.pvalue
, pprob.dist
,cred.set
1 2 3 4 | ## Load data
data(dksdata)
pp <- pprob.uniform(P[,1])
hist(pp)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.