statsmodels.discrete.count_model.GenericZeroInflated.loglike¶
-
GenericZeroInflated.
loglike
(params)[source]¶ Loglikelihood of Generic Zero Inflated model.
- Parameters
- paramsarray_like
The parameters of the model.
- Returns
- loglike
float
The log-likelihood function of the model evaluated at params. See notes.
- loglike
Notes
lnL=∑yi=0ln(wi+(1−wi)∗Pmain_model)+∑yi>0(ln(1−wi)+Lmain_model)whereP−pdfofmainmodel,L−loglikefunctionofmainmodel.