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
loglikendarray

The log likelihood for each observation of the model evaluated at params. See Notes for definition.

Notes

lnL=ln(wi+(1wi)Pmain_model)+ln(1wi)+Lmain_modelwherePpdfofmainmodel,Lloglikefunctionofmainmodel.

for observations i=1,...,n