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 = 10
z = np.random.randn(p)
pvals = 2*norm.cdf(-np.abs(z)/2)
mtest = MultiTest(pvals)
f = mtest.fisher()
bj = mtest.berk_jones()
print(f"Fisher = {f[0]}, degrees of freedom = {f[1]}")
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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26a6786dd646856cf044901366d66684bf0976c05feff062f514ff562e64bae4 |
|
MD5 | 686a79d4bba995656e64a5d26a8b8427 |
|
BLAKE2b-256 | fcfe75d108adce1f3a5f0884e0141e8465062a84d2d320995646efc47b33a4fe |
Close
Hashes for multiple_hypothesis_testing-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa375a3b21453f557c7400c5989d3868d52087c49e31b223b0fa790deb0e2e1b |
|
MD5 | 94714e0f0f1749acdeaa4c89fe6b0fac |
|
BLAKE2b-256 | ba467565aca7cb4b182c659270bd6660522d4d6818afe62132f77577f9f5c5bd |