statsmodels.stats.multicomp.pairwise_tukeyhsd

statsmodels.stats.multicomp.pairwise_tukeyhsd(endog, groups, alpha=0.05)[source]

Calculate all pairwise comparisons with TukeyHSD confidence intervals

Parameters
endogndarray, float, 1d

response variable

groupsndarray, 1d

array with groups, can be string or integers

alphafloat

significance level for the test

Returns
resultsTukeyHSDResults instance

A results class containing relevant data and some post-hoc calculations, including adjusted p-value

See also

MultiComparison
tukeyhsd
statsmodels.sandbox.stats.multicomp.TukeyHSDResults

Notes

This is just a wrapper around tukeyhsd method of MultiComparison