Skip to content

Instantly share code, notes, and snippets.

View andreaeverett's full-sized avatar

Andrea Everett andreaeverett

View GitHub Profile
@andreaeverett
andreaeverett / dunn.py
Created July 31, 2017 19:23 — forked from alimuldal/dunn.py
Implementation of Dunn's multiple comparison test, following a Kruskal-Wallis 1-way ANOVA
import numpy as np
from scipy import stats
from itertools import combinations
from statsmodels.stats.multitest import multipletests
from statsmodels.stats.libqsturng import psturng
import warnings
def kw_dunn(groups, to_compare=None, alpha=0.05, method='bonf'):
"""
@andreaeverett
andreaeverett / .block
Created October 20, 2016 20:01
fresh block
license: mit
@andreaeverett
andreaeverett / .block
Last active October 21, 2016 05:14
First Rectangles Alpha Frequencies
license: mit