parameters: (self)
docstring: Set survival function based on the availability of _survival function and `_log_survival`
          and `_call_cdf`.
docstring_summary: Set survival function based on the availability of _survival function and `_log_survival`
          and `_call_cdf`.
docstring_tokens: Set survival function based on the availability of _survival function and _log_survival and _call_cdf .
function: def _set_survival(self):
          """
          Set survival function based on the availability of _survival function and `_log_survival`
          and `_call_cdf`.
          """
          if not (hasattr(self, '_survival_function') or hasattr(self, '_log_survival') or
                  hasattr(self, '_cdf') or hasattr(self, '_log_cdf')):
              self._call_survival = self._raise_not_implemented_error(
                  'survival_function')
          elif hasattr(self, '_survival_function'):
              self._call_survival = self._survival_function
          elif hasattr(self, '_log_survival'):
              self._call_survival = self._calc_survival_from_log_survival
          elif hasattr(self, '_call_cdf'):
              self._call_survival = self._calc_survival_from_call_cdf
function_tokens: def _set_survival ( self ) : if not ( hasattr ( self , '_survival_function' ) or hasattr ( self , '_log_survival' ) or hasattr ( self , '_cdf' ) or hasattr ( self , '_log_cdf' ) ) : self . _call_survival = self . _raise_not_implemented_error ( 'survival_function' ) elif hasattr ( self , '_survival_function' ) : self . _call_survival = self . _survival_function elif hasattr ( self , '_log_survival' ) : self . _call_survival = self . _calc_survival_from_log_survival elif hasattr ( self , '_call_cdf' ) : self . _call_survival = self . _calc_survival_from_call_cdf