def _getnames(self, yname=None, xname=None):
 if (yname is None):
  if (hasattr(self.model, 'endog_names') and (not (self.model.endog_names is None))):
   yname = self.model.endog_names
  else:
   yname = 'y'
 if (xname is None):
  if (hasattr(self.model, 'exog_names') and (not (self.model.exog_names is None))):
   xname = self.model.exog_names
  else:
   xname = [('var_%d' % i) for i in range(len(self.params))]
 return (yname, xname)

def _getnames ( self , yname = None , xname = None ) : if ( yname is None ) : if ( hasattr ( self . model , 'endog_names' ) and ( not ( self . model . endog_names is None ) ) ) : yname = self . model . endog_names else : yname = 'y' if ( xname is None ) : if ( hasattr ( self . model , 'exog_names' ) and ( not ( self . model . exog_names is None ) ) ) : xname = self . model . exog_names else : xname = [ ( 'var_%d' % i ) for i in range ( len ( self . params ) ) ] return ( yname , xname )
extract names from model or construct names .