#NEWLINE# @ cache_readonly #NEWLINE# def bic( self ) : #NEWLINE# #INDENT# if df . reml : #NEWLINE# #INDENT# return np . nan #NEWLINE# #UNINDENT# if ( self . freepat is not None ) : #NEWLINE# #INDENT# df = ( self . freepat . get_packed ( use_sqrt = False , has_fe = True ) . sum ( ) + 1 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# df = ( self . params . size + 1 ) #NEWLINE# #UNINDENT# return ( ( ( - 2 ) * self . llf ) + ( np . log ( self . nobs ) * df ) )