statsmodels.discrete.discrete_model.MNLogit.loglikeobs¶
-
MNLogit.
loglikeobs
(params)[source]¶ Log-likelihood of the multinomial logit model for each observation.
Parameters: params : array-like
The parameters of the multinomial logit model.
Returns: loglike : ndarray (nobs,)
The log likelihood for each observation of the model evaluated at params. See Notes
Notes
for observations
where if individual i chose alternative j and 0 if not.