statsmodels.discrete.count_model.GenericZeroInflated.loglikeobs¶
-
GenericZeroInflated.
loglikeobs
(params)[source]¶ Loglikelihood for observations of Generic Zero Inflated model.
- Parameters
- paramsarray_like
The parameters of the model.
- Returns
- loglike
ndarray
The log likelihood for each observation of the model evaluated at params. See Notes for definition.
- loglike
Notes
lnL=ln(wi+(1−wi)∗Pmain_model)+ln(1−wi)+Lmain_modelwhereP−pdfofmainmodel,L−loglikefunctionofmainmodel.for observations i=1,...,n