statsmodels.genmod.generalized_linear_model.GLM.score#

GLM.score(params, scale=None)[source]#

Score, first derivative of the log-likelihood function

Parameters:
paramsndarray

Parameter at which score is evaluated.

scalefloat, optional

If scale is None, then the default scale will be calculated. Default scale is defined by self.scaletype and set in fit. If scale is not None, then it is used as a fixed scale.

Returns:
scorendarray, 1d

The first derivative of the log-likelihood function calculated as the sum of score_obs