statsmodels.discrete.count_model.ZeroInflatedNegativeBinomialP.loglike

ZeroInflatedNegativeBinomialP.loglike(params)

Loglikelihood of Generic Zero Inflated model

Parameters: params (array-like) – The parameters of the model.
Returns: loglike – The log-likelihood function of the model evaluated at params. See notes.
Return type: float

Notes

\[\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.\]

© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3-clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.discrete.count_model.ZeroInflatedNegativeBinomialP.loglike.html