statsmodels.discrete.discrete_model.MNLogit.score_obs¶
- MNLogit.score_obs(params)[source]¶
Jacobian matrix for multinomial logit model log-likelihood
- Parameters:¶
- params
ndarray
The parameters of the multinomial logit model.
- params
- Returns:¶
- jacarray_like
The derivative of the loglikelihood for each observation evaluated at params .
Notes
for
, for observationsIn the multinomial model the score vector is K x (J-1) but is returned as a flattened array. The Jacobian has the observations in rows and the flattened array of derivatives in columns.