#NEWLINE# def test_resid( self ) : #NEWLINE# #INDENT# l = ( len ( self . res1 . resid_response ) - 1 ) #NEWLINE# l2 = ( len ( self . res2 . resid_response ) - 1 ) #NEWLINE# assert_allclose ( np . concatenate ( ( self . res1 . resid_response [ : 17 ] , [ self . res1 . resid_response [ l ] ] ) ) , np . concatenate ( ( self . res2 . resid_response [ : 17 ] , [ self . res2 . resid_response [ l2 ] ] ) ) , rtol = 1e-05 , atol = 1e-05 ) #NEWLINE# assert_allclose ( np . concatenate ( ( self . res1 . resid_pearson [ : 17 ] , [ self . res1 . resid_pearson [ l ] ] ) ) , np . concatenate ( ( self . res2 . resid_pearson [ : 17 ] , [ self . res2 . resid_pearson [ l2 ] ] ) ) , rtol = 1e-05 , atol = 1e-05 ) #NEWLINE# assert_allclose ( np . concatenate ( ( self . res1 . resid_deviance [ : 17 ] , [ self . res1 . resid_deviance [ l ] ] ) ) , np . concatenate ( ( self . res2 . resid_deviance [ : 17 ] , [ self . res2 . resid_deviance [ l2 ] ] ) ) , rtol = 1e-05 , atol = 1e-05 ) #NEWLINE# if ( not isinstance ( self , ( TestTweedieLog1 , TestTweedieLog15Fair ) ) ) : #NEWLINE# #INDENT# assert_allclose ( np . concatenate ( ( self . res1 . resid_working [ : 17 ] , [ self . res1 . resid_working [ l ] ] ) ) , np . concatenate ( ( self . res2 . resid_working [ : 17 ] , [ self . res2 . resid_working [ l2 ] ] ) ) , rtol = 1e-05 , atol = 1e-05 )