statsmodels.discrete.discrete_model.GeneralizedPoisson.loglike

GeneralizedPoisson.loglike(params)[source]

Loglikelihood of Generalized Poisson model

Parameters
paramsarray_like

The parameters of the model.

Returns
loglikefloat

The log-likelihood function of the model evaluated at params. See notes.

Notes

lnL=ni=1[μi+(yi1)ln(μi+αμp1iyi)yiln(1+αμp1i)ln(yi!)μi+αμp1iyi1+αμp1i]