Several methods of combining P-values
Project description
MultiTest -- Global Tests for Multiple Hypothesis
MultiTest includes several techniques for multiple hypothesis testing:
MultiTest.hc
Higher CriticismMultiTest.hcstar
Higher Criticism with limited rangeMultiTest.hc_jin
Higher Criticism with limited range proposed by Jiashun JinMultiTest.berk_jones
Berk-Jones test (actually -log(bj))MultiTest.fdr
False-discovery rate with optimized rate parameterMultiTest.minp
Minimal P-values (Bonferroni style inference) (actually -log(minp))MultiTest.fisher
Fisher's method to combine P-values
All tests rejects for large values of the test statistics.
Example:
import numpy as np
from scipy.stats import norm
from multitest import MultiTest
p = 100
z = np.random.randn(p)
pvals = 2*norm.cdf(-np.abs(z)/2)
mtest = MultiTest(pvals)
hc, p_hct = mtest.hc(gamma = 0.3)
bj = mtest.berk_jones()
ii = np.arange(len(pvals))
print(f"HC = {hc}, Indices of P-values below HCT: {ii[pvals <= p_hct]}")
print(f"Berk-Jones = {bj}")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for multiple-hypothesis-testing-0.1.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98f6fe1561f0a51bd97420174ac874283664b7ced45e9dc59d951dfa7c4e2ae0 |
|
MD5 | 19f330c0b64220051fc722599665db0f |
|
BLAKE2b-256 | 6758b4ea22b6356fd66c142f0ede75d9148c7aa7f595056993230991957b84b1 |
Close
Hashes for multiple_hypothesis_testing-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76f986ff918c6ed708b923d4b0d9f6b2f69438324fd80d5b14afca0a026425cd |
|
MD5 | fef9cae0dca04284d770152e7cfd6143 |
|
BLAKE2b-256 | 4807408e62f385da1336e58ec6bf920e03f1014b6bff7bab73e48b0d3c2efd67 |