This function estimates the number of true null hypotheses given a vector of p-values using the method of Nettleton et al. (2006) JABES 11, 337-356. The estimate obtained is identical to the estimate obtained by the iterative procedure described by Mosig et al. Genetics 157:1683-1698. The number of p-values falling into B equally sized bins are counted. The count of each bin is compared to the average of all the bin counts associated with the current bins and all bins to its right. Working from left to right, the first bin that has a count less than or equal to the average is identified. That average is multiplied by the total number of bins to obtain an estimate of m0, the number of tests for which the null hypothesis is true.
estimate.m0(p, B = 20)
a numerical vector of p-value
number of bin
The function returns an estimate of m0, the number of tests for which the null hypothesis is true.
Dan Nettleton email@example.com
1. Dan Nettleton, J. T. Gene Hwang, Rico A. Caldo and Roger P. Wise. Estimating the Number of True Null Hypotheses from a Histogram of p Values. Journal of Agricultural, Biological, and Environmental Statistics Vol. 11, No. 3 (Sep., 2006), pp. 337-356.
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.