Skip to main content

statutils

This package is aselections of various utils for statistics. It is inspired by R functions and packages.

Usage

Adjust p values for multiple comparisons

Use p_adjust method to adjust p-values with Bonferroni correction, Holm-Bonferroni correction or others. p_adjust is a rewrite of R's p.adjust function with the numpy arrays. Use it in the same way.

Supported methods for multiple comparison (method argument):

  • bonferroni Bonferroni correction
  • holm Holm (1979)
  • hochberg Hochberg (1988)
  • hommel Hommel (1988)
  • BH Benjamini & Hochberg (1995)
  • BY Benjamini & Yekutieli (2001)
  • none as a pass-through option

Example

from statutils.multi_comparison import p_adjust

p = [0.005, 0.04, 0.01, 0.5, 0.01, 0.7]
p_adjusted = p_adjust(p, method='holm')

Metadata

Release files for statutils 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for statutils 0.1.1
File Size Uploaded
statutils-0.1.1.tar.gz 4.2 kB Details

Release files / statutils-0.1.1.tar.gz

Download URL statutils-0.1.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
eb2a0919f4e60850de24fc730e39ced6d5411095c35737eacc2b8e10dad6ffe0
BLAKE2b-256 checksum
How to use checksums
49d482f132e816be9ce1275c26678b02a9edf839831799125ac8b8a7ea03c73e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page