def loglike(self, params):
    '\n        Loglikelihood of Generic Zero Inflated model.\n\n        Parameters\n        ----------\n        params : array_like\n            The parameters of the model.\n\n        Returns\n        -------\n        loglike : float\n            The log-likelihood function of the model evaluated at `params`.\n            See notes.\n\n        Notes\n        -----\n        .. math:: \\ln L=\\sum_{y_{i}=0}\\ln(w_{i}+(1-w_{i})*P_{main\\_model})+\n            \\sum_{y_{i}>0}(\\ln(1-w_{i})+L_{main\\_model})\n            where P - pdf of main model, L - loglike function of main model.\n        '
    return np.sum(self.loglikeobs(params))
Loglikelihood of Generic Zero Inflated model.

Parameters
----------
params : array_like
    The parameters of the model.

Returns
-------
loglike : float
    The log-likelihood function of the model evaluated at `params`.
    See notes.

Notes
-----
.. math:: \ln L=\sum_{y_{i}=0}\ln(w_{i}+(1-w_{i})*P_{main\_model})+
    \sum_{y_{i}>0}(\ln(1-w_{i})+L_{main\_model})
    where P - pdf of main model, L - loglike function of main model.
def loglike(self, params):
    '\n        Loglikelihood of Generic Zero Inflated model.\n\n        Parameters\n        ----------\n        params : array_like\n            The parameters of the model.\n\n        Returns\n        -------\n        loglike : float\n            The log-likelihood function of the model evaluated at `params`.\n            See notes.\n\n        Notes\n        -----\n        .. math:: \\ln L=\\sum_{y_{i}=0}\\ln(w_{i}+(1-w_{i})*P_{main\\_model})+\n            \\sum_{y_{i}>0}(\\ln(1-w_{i})+L_{main\\_model})\n            where P - pdf of main model, L - loglike function of main model.\n        '
    return np.sum(self.loglikeobs(params))