Hierarchical hypothesis testing library
Project description
hierarch
A Hierarchical Resampling Package for Python
Version 1.1.6
hierarch is a package for hierarchical resampling (bootstrapping, permutation) of datasets in Python. Because for loops are ultimately intrinsic to cluster-aware resampling, hierarch uses Numba to accelerate many of its key functions.
hierarch has several functions to assist in performing resampling-based (and therefore distribution-free) hypothesis tests, confidence interval calculations, and power analyses on hierarchical data.
Table of Contents
Introduction
Design-based randomization tests represents the platinum standard for significance analyses [1, 2, 3] - that is, they produce probability statements that depend only on the experimental design, not at all on less-than-verifiable assumptions about the probability distributions of the data-generating process. Researchers can use hierarch to quickly perform automated design-based randomization tests for experiments with arbitrary levels of hierarchy.
[1] Tukey, J.W. (1993). Tightening the Clinical Trial. Controlled Clinical Trials, 14(4), 266-285.
[2] Millard, S.P., Krause, A. (2001). Applied Statistics in the Pharmaceutical Industry. Springer.
[3] Berger, V.W. (2000). Pros and cons of permutation tests in clinical trials. Statistics in Medicine, 19(10), 1319-1328.
Setup
Dependencies
- numpy
- pandas (for importing data)
- numba
- scipy (for power analysis)
Installation
The easiest way to install hierarch is via PyPi.
pip install hierarch
Alternatively, you can install from Anaconda.
conda install -c rkulk111 hierarch
Documentation
Check out our user guide at readthedocs.
Citation
If hierarch helps you analyze your data, please consider citing it. The manuscript also contains a set of simulations validating hierarchical randomization tests in a variety of conditions.
Kulkarni RU, Wang CL, Bertozzi CR (2022) Analyzing nested experimental designs—A user-friendly resampling method to determine experimental significance. PLoS Comput Biol 18(5): e1010061. https://doi.org/10.1371/journal.pcbi.1010061
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
File details
Details for the file hierarch-1.1.6.tar.gz
.
File metadata
- Download URL: hierarch-1.1.6.tar.gz
- Upload date:
- Size: 25.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.8.17 Linux/5.15.0-1041-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a554fffecb8c7226ccb5892350b8dd55fdaa8b6bc23e9b5d5f1842fac4b86c2 |
|
MD5 | b4db4fbf16eeb9ca9135fb23e0ffdb28 |
|
BLAKE2b-256 | 3024c30ead74e74ff7567df6123680746906081d3d756024b046bf6ac8adf3f7 |
File details
Details for the file hierarch-1.1.6-py3-none-any.whl
.
File metadata
- Download URL: hierarch-1.1.6-py3-none-any.whl
- Upload date:
- Size: 27.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.8.17 Linux/5.15.0-1041-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a151b649d9f1d8584c34c59d48092d37246c3d627576bf02ec61103485e9ccc3 |
|
MD5 | d26c2889b9e26771a3e22a5faec04d12 |
|
BLAKE2b-256 | c4cfd1ad7e567a5e6ff2a785488f4f13d8328c775f2679fc72350810a2e8c96a |