statsmodels.othermod.betareg.BetaModel.score_factor¶
- BetaModel.score_factor(params)[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.
- params
- Returns:
- score_factor
ndarray
, 2-D A 2d weight vector used in the calculation of the score_obs.
- score_factor
Notes
The score_obs can be obtained from score_factor
sf
usingd1 = sf[:, :1] * exog
d2 = sf[:, 1:2] * exog_precision