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