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
- loglike
ndarray
The log likelihood for each observation of the model evaluated at params. See Notes
- loglike
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]for observations i=1,...,n