statsmodels.discrete.discrete_model.GeneralizedPoisson.loglike¶
-
GeneralizedPoisson.
loglike
(params)[source]¶ Loglikelihood of Generalized Poisson model
Parameters: params (array-like) – The parameters of the model. Returns: loglike – The log-likelihood function of the model evaluated at params. See notes. Return type: float Notes
lnL=n∑i=1[μi+(yi−1)∗ln(μi+α∗μp−1i∗yi)−yi∗ln(1+α∗μp−1i)−ln(yi!)−μi+α∗μp−1i∗yi1+α∗μp−1i]