Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Files for statutils, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size statutils-0.1.1.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page