statsmodels.discrete.discrete_model.MNLogit.loglike¶
-
MNLogit.
loglike
(params)[source]¶ Log-likelihood of the multinomial logit model.
Parameters: params (array-like) – The parameters of the multinomial logit model. Returns: loglike – The log-likelihood function of the model evaluated at params. See notes. Return type: float Notes
lnL=n∑i=1J∑j=0dijln(exp(β′jxi)∑Jk=0exp(β′kxi))where dij=1 if individual i chose alternative j and 0 if not.