The loglikelihood function for the negative binomial family.
Parameters: | endog : array-like
lin_pred : array-like
|
---|---|
Returns: | llf : float
|
Notes
where constant is defined as:
constant = gammaln(endog + 1/alpha) - gammaln(endog + 1) -
gammaln(1/alpha)