statsmodels.othermod.betareg.BetaModel.score_factor

BetaModel.score_factor(params, endog=None)[source]

Derivative of loglikelihood function w.r.t. linear predictors.

This needs to be multiplied with the exog to obtain the score_obs.

Parameters:
params : ndarray

Parameter at which score is evaluated.

Returns:

score_factor – A 2d weight vector used in the calculation of the score_obs.

Return type:

ndarray, 2-D

Notes

The score_obs can be obtained from score_factor sf using

  • d1 = sf[:, :1] * exog

  • d2 = sf[:, 1:2] * exog_precision