def get_tukeyQcrit(k, df, alpha=0.05):
 if (alpha == 0.05):
  intp = interpolate.interp1d(crows, cv005[:, (k - 2)])
 elif (alpha == 0.01):
  intp = interpolate.interp1d(crows, cv001[:, (k - 2)])
 else:
  raise ValueError('only implemented for alpha equal to 0.01 and 0.05')
 return intp(df)

def get_tukeyQcrit ( k , df , alpha = 0.05 ) : if ( alpha == 0.05 ) : intp = interpolate . interp1d ( crows , cv005 [ : , ( k - 2 ) ] ) elif ( alpha == 0.01 ) : intp = interpolate . interp1d ( crows , cv001 [ : , ( k - 2 ) ] ) else : raise ValueError ( 'only implemented for alpha equal to 0.01 and 0.05' ) return intp ( df )
return critical values for tukeys hsd (q) parameters k : int in {2 .