def compare_ordered(vals, alpha):
 vals = np.asarray(vals)
 alphaf = alpha
 sortind = np.argsort(vals)
 pvals = vals[sortind]
 sortrevind = sortind.argsort()
 ntests = len(vals)
 (v1, v2) = np.triu_indices(ntests, 1)
 for i in range(4):
  for j in range(4, i, (-1)):
   print(i, j)

def compare_ordered ( vals , alpha ) : vals = np . asarray ( vals ) alphaf = alpha sortind = np . argsort ( vals ) pvals = vals [ sortind ] sortrevind = sortind . argsort ( ) ntests = len ( vals ) ( v1 , v2 ) = np . triu_indices ( ntests , 1 ) for i in range ( 4 ) : for j in range ( 4 , i , ( - 1 ) ) : print ( i , j )
simple ordered sequential comparison of means vals : array_like means or rankmeans for independent groups incomplete .