#NEWLINE# def test_fitted( self ) : #NEWLINE# #INDENT# res1 = self . res1 #NEWLINE# res2 = self . res2 #NEWLINE# fittedvalues = res1 . predict ( ) #NEWLINE# resid = ( res1 . model . endog - fittedvalues ) #NEWLINE# assert_allclose ( fittedvalues , res1 . loc_fit . fitted_values , rtol = 0.00025 ) #NEWLINE# assert_allclose ( resid , res2 . loc_fit . residuals , atol = 2e-06 )