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
\[\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.\]
Last update:
Dec 11, 2024