statsmodels.sandbox.stats.multicomp.MultiComparison.tukeyhsd¶
-
MultiComparison.tukeyhsd(alpha=
0.05, use_var='equal')[source]¶ Tukey’s range test to compare means of all pairs of groups
- Parameters:¶
- alpha
float,optional Value of FWER at which to calculate HSD.
- use_var{“unequal”, “equal”}
If
use_varis “equal”, then the Tukey-hsd pvalues are returned. Tukey-hsd assumes that (within) variances are the same across groups. Ifuse_varis “unequal”, then the Games-Howell pvalues are returned. This uses Welch’s t-test for unequal variances with Satterthwait’s corrected degrees of freedom for each pairwise comparison.
- alpha
- Returns:¶
- results
TukeyHSDResults A results class containing relevant data and some post-hoc calculations
- results
Notes
The
use_varkeyword and option for Games-Howell test.Added in version 0.15.0.