statsmodels.sandbox.stats.multicomp.homogeneous_subsets(vals, dcrit)
[source]
recursively check all pairs of vals for minimum distance
step down method as in NewmanKeuls and Ryan procedures. This is not a closed procedure since not all partitions are checked.
Parameters: 


Returns: 

this follows description in SPSS notes on PostHoc Tests
Because of the recursive structure, some comparisons are made several times, but only unique pairs or sets are returned.
>>> m = [0, 2, 2.5, 3, 6, 8, 9, 9.5,10 ] >>> rej, nrej, ssli, res = homogeneous_subsets(m, 2) >>> set_partition(ssli) ([(5, 6, 7, 8), (1, 2, 3), (4,)], [0]) >>> [np.array(m)[list(pp)] for pp in set_partition(ssli)[0]] [array([ 8. , 9. , 9.5, 10. ]), array([ 2. , 2.5, 3. ]), array([ 6.])]
© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.sandbox.stats.multicomp.homogeneous_subsets.html