<s> """<STR_LIT>""" <EOL> import numpy as np <EOL> from numpy . testing import assert_almost_equal <EOL> from statsmodels . stats . libqsturng import qsturng , psturng <EOL> from statsmodels . sandbox . stats . multicomp import get_tukeyQcrit <EOL> def test_qstrung ( ) : <EOL> rows = [ <NUM_LIT:5> , <NUM_LIT:6> , <NUM_LIT:7> , <NUM_LIT:8> , <NUM_LIT:9> , <NUM_LIT:10> , <NUM_LIT:11> , <NUM_LIT:12> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT:15> , <EOL> <NUM_LIT:16> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT:20> , <NUM_LIT> , <NUM_LIT:30> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ] <EOL> cols = np . arange ( <NUM_LIT:2> , <NUM_LIT:11> ) <EOL> for alpha in [ <NUM_LIT> , <NUM_LIT> ] : <EOL> for k in cols : <EOL> c1 = get_tukeyQcrit ( k , rows , alpha = alpha ) <EOL> c2 = qsturng ( <NUM_LIT:1> - alpha , k , rows ) <EOL> assert_almost_equal ( c1 , c2 , decimal = <NUM_LIT:2> ) <EOL> assert_almost_equal ( psturng ( qsturng ( <NUM_LIT:1> - alpha , k , rows ) , k , rows ) , alpha , <NUM_LIT:5> ) </s>
