#NEWLINE# def test_ttest_tvalues( self ) : #NEWLINE# #INDENT# res = self . results #NEWLINE# mat = np . eye ( len ( res . params ) ) #NEWLINE# tt = res . t_test ( mat ) #NEWLINE# assert_allclose ( tt . effect , res . params , rtol = 1e-12 ) #NEWLINE# assert_allclose ( np . squeeze ( tt . sd ) , res . bse , rtol = 1e-10 ) #NEWLINE# assert_allclose ( np . squeeze ( tt . tvalue ) , res . tvalues , rtol = 1e-12 ) #NEWLINE# assert_allclose ( tt . pvalue , res . pvalues , rtol = 5e-10 ) #NEWLINE# assert_allclose ( tt . conf_int ( ) , res . conf_int ( ) , rtol = 1e-10 ) #NEWLINE# table_res = np . column_stack ( ( res . params , res . bse , res . tvalues , res . pvalues , res . conf_int ( ) ) ) #NEWLINE# table1 = np . column_stack ( ( tt . effect , tt . sd , tt . tvalue , tt . pvalue , tt . conf_int ( ) ) ) #NEWLINE# table2 = tt . summary_frame ( ) . values #NEWLINE# assert_allclose ( table2 , table_res , rtol = 1e-12 ) #NEWLINE# assert_ ( hasattr ( res , 'use_t' ) ) #NEWLINE# tt = res . t_test ( mat [ 0 ] ) #NEWLINE# tt . summary ( ) #NEWLINE# assert_allclose ( tt . pvalue , res . pvalues [ 0 ] , rtol = 5e-10 )