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:
- Returns:
Notes
The score_obs can be obtained from the score factors
sf1, sf2usingd1 = sf1[:, None] * exog
d2 = sf2[:, None] * exog_precision