statsmodels.discrete.discrete_model.GeneralizedPoisson.loglikeobs

GeneralizedPoisson.loglikeobs(params)[source]

Loglikelihood for observations of Generalized Poisson 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

Notes

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

for observations i=1,...,n