Skip to main content

Automatically store/load data in a tidy, efficient way. Includes functions for data visualization and analysis.

Project description

PhD-utils

For people that have to compute and store a large variety of data and/or perform statistical inference.

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.bootstrap for numba-accelerated computation (does not call resample).

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

Please check the example notebook.

Documentation

Github pages

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 dependencies can be base (recommended), all, r (needed for resample to work), statsmodels, matplotlib or plotly.

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

phdu-2.8.4.tar.gz (57.5 kB view details)

Uploaded Source

File details

Details for the file phdu-2.8.4.tar.gz.

File metadata

  • Download URL: phdu-2.8.4.tar.gz
  • Upload date:
  • Size: 57.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for phdu-2.8.4.tar.gz
Algorithm Hash digest
SHA256 364867e70cbce5c872929e798b8e1c08b232796d97945a4ec2cbf72af452ebd6
MD5 5c8178fea575f03c8c52c6c458fc8355
BLAKE2b-256 ead079f7155284cd505a1a11e39f86b9a4197b03d141cb7e640681572367d0b9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page