def _check_discrete_args(at, method):
 if (method in ['dyex', 'eyex']):
  raise ValueError(('%s not allowed for discrete variables' % method))
 if (at in ['median', 'zero']):
  raise ValueError(('%s not allowed for discrete variables' % at))

def _check_discrete_args ( at , method ) : if ( method in [ 'dyex' , 'eyex' ] ) : raise ValueError ( ( '%s not allowed for discrete variables' % method ) ) if ( at in [ 'median' , 'zero' ] ) : raise ValueError ( ( '%s not allowed for discrete variables' % at ) )
checks the arguments for margeff if the exogenous variables are discrete .