PhD-utils
For people that have to compute and store a large variety of data and/or perform statistical inference. Check the tidypath and PhD-utils slides for an overview.
Keep your files tidy!
Don't spend time creating directories, deciding filenames, saving, loading, etc. Decorators savefig & savedata will do it for you with optimal compression. More info at the tidypath repository.
Estimate confidence intervals
The module phdu.resample allows calls to the resample R package.
- Provides CI and permutation tests.
- CIs can account narrowness bias, skewness and other errors in CI estimation, as indicated in the article
- Alternatively, use
phdu.stats.bootstrapfor numba-accelerated computation (does not callresample).
Bootstrap-based power analysis.
Calculate the power for accepting H0 and estimate the needed sample size.
Function power_analysis in phdu.stats.bootstrap follows Efron-Tshibirani: An introduction to the bootstrap, p. 381-384.
Numba-accelerated permutation tests
Module phdu.stats.tests.permutation.
- Permutation tests for any statistic.
- Includes paired and block cases.
Demo
- tidypath and PhD-utils slides: instructions and use cases.
- Example notebook
Documentation
Install
-
For the R compatible installation first install R:
conda install -c conda-forge r r-essentials r-base -
Install with dependencies:
pip install phdu[dependencies]Where
dependenciescan bebase(recommended),all,r(needed forresampleto work),statsmodels,matplotliborplotly.
Metadata
Release files for phdu 3.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| phdu-3.0.7.tar.gz | 58.9 kB | Details |
Release files / phdu-3.0.7.tar.gz
| Download URL | phdu-3.0.7.tar.gz |
|---|---|
| Size | 58.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed4b604230b29977041f50aa3ca08a630be7c790c6b6420cc7feb12e0cdfda92
|
|
BLAKE2b-256 checksum How to use checksums |
eedb5a34b78516a81f78196b99b03d7c1a02cd8fa51e94ac506f866cfac1cc63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|