Skip to main content

Utils for statistics, mainly inspired by R packages.

Project description

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')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

statutils-0.1.1.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file statutils-0.1.1.tar.gz.

File metadata

  • Download URL: statutils-0.1.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for statutils-0.1.1.tar.gz
Algorithm Hash digest
SHA256 eb2a0919f4e60850de24fc730e39ced6d5411095c35737eacc2b8e10dad6ffe0
MD5 e3ff7dda1235a1eb2e204c04f60f1555
BLAKE2b-256 49d482f132e816be9ce1275c26678b02a9edf839831799125ac8b8a7ea03c73e

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