statsmodels.discrete.discrete_model.MNLogit.loglikeobs¶
-
MNLogit.
loglikeobs
(params)[source]¶ Log-likelihood of the multinomial logit model for each observation.
- Parameters
- paramsarray_like
The parameters of the multinomial logit model.
- Returns
- loglikearray_like
The log likelihood for each observation of the model evaluated at params. See Notes
Notes
lnLi=J∑j=0dijln(exp(β′jxi)∑Jk=0exp(β′kxi))for observations i=1,...,n
where dij=1 if individual i chose alternative j and 0 if not.