statsmodels.miscmodels.ordinal_model.OrderedModel.score_obs_#

OrderedModel.score_obs_(params)[source]#

Score, first derivative of loglike for each observation

This currently only implements the derivative with respect to the exog parameters, but not with respect to threshold parameters.

Parameters:
paramsndarray

Parameters for the model, (exog_coef, transformed_thresholds)

Returns:
ndarray

The score for each observation with respect to the exog parameters and the transformed threshold parameters, 2-dim with shape (nobs, k_vars + k_levels - 1).