| Literature DB >> 35500032 |
Rishikesh U Kulkarni1, Catherine L Wang1, Carolyn R Bertozzi1,2,3.
Abstract
While hierarchical experimental designs are near-ubiquitous in neuroscience and biomedical research, researchers often do not take the structure of their datasets into account while performing statistical hypothesis tests. Resampling-based methods are a flexible strategy for performing these analyses but are difficult due to the lack of open-source software to automate test construction and execution. To address this, we present Hierarch, a Python package to perform hypothesis tests and compute confidence intervals on hierarchical experimental designs. Using a combination of permutation resampling and bootstrap aggregation, Hierarch can be used to perform hypothesis tests that maintain nominal Type I error rates and generate confidence intervals that maintain the nominal coverage probability without making distributional assumptions about the dataset of interest. Hierarch makes use of the Numba JIT compiler to reduce p-value computation times to under one second for typical datasets in biomedical research. Hierarch also enables researchers to construct user-defined resampling plans that take advantage of Hierarch's Numba-accelerated functions.Entities:
Mesh:
Year: 2022 PMID: 35500032 PMCID: PMC9098003 DOI: 10.1371/journal.pcbi.1010061
Source DB: PubMed Journal: PLoS Comput Biol ISSN: 1553-734X Impact factor: 4.475
Formatted dataset corresponding to the design in Fig 2.
| Mouse | Treatment | Well | Image | Measured Values |
|---|---|---|---|---|
| 1 | 1 | 1 | 1 | 1.35 |
| 1 | 1 | 1 | 2 | 7.84 |
| 1 | 1 | 1 | 3 | 55.2 |
| 1 | 1 | 2 | 1 | 124.4 |
| 1 | 1 | 2 | 2 | 12.2 |
| 1 | 1 | 2 | 3 | 11.1 |
| 1 | 1 | 2 | 1 | 4.444 |
| 1 | 1 | 2 | 2 | 76.3 |
| 1 | 1 | 2 | 3 | 395.3 |
| 1 | 2 | 3 | 1 | 2.1 |
| 1 | 2 | 3 | 2 | 1.199 |
| 1 | 2 | 3 | 3 | 4.4 |
| 1 | 2 | 3 | 1 | 3.3 |
| 1 | 2 | 3 | 2 | 32.2 |
| 1 | 2 | 3 | 3 | 8.8 |
|
|
|
|
|
|
For experiments with several factors on the same level (left side of table), exact permutation tests can be constructed by concatenating all but one of the factors and treating the leftover factor as nested within the others (right side of table).
| Factor 1 | Factor 2 | Factor 3 | Factor 1 | 2 | Factor 3 |
|---|---|---|---|---|
| 1 | 1 | 1 | 1–1 | 1 |
| 1 | 1 | 2 | 1–1 | 2 |
| 1 | 2 | 1 | 1–2 | 1 |
| 1 | 2 | 2 | 1–2 | 2 |
| 2 | 1 | 1 | 2–1 | 1 |
| 2 | 1 | 2 | 2–1 | 2 |
| 2 | 2 | 1 | 2–2 | 1 |
| 2 | 2 | 2 | 2–2 | 2 |
While Hierarch cannot produce p-values and confidence intervals for interaction effects, it can account for interactions when estimating main effects.
| Factor 1 | Factor 2 | Factor 1:2 | Factor 1 | Factor 2 | Factor 2 |
|---|---|---|---|---|---|
| 1 | 1 | 1–1 | 1 | 1 | 1 |
| 1 | 2 | 1–2 | 1 | 2 | 2 |
| 2 | 1 | 2–1 | 2 | 1 | 1 |
| 2 | 2 | 2–2 | 2 | 2 | 2 |