statsmodels.discrete.discrete_model.MNLogit.loglike

MNLogit.loglike(params)[source]

Log-likelihood of the multinomial logit model.

Parameters:
paramsarray_like

The parameters of the multinomial logit model.

Returns:
loglikefloat

The log-likelihood function of the model evaluated at params. See notes.

Notes

lnL=i=1nj=0Jdijln(exp(βjxi)k=0Jexp(βkxi))

where dij=1 if individual i chose alternative j and 0 if not.


Last update: Oct 03, 2024