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 correctionholm
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
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
statutils-0.1.1.tar.gz
(4.2 kB
view hashes)