statsmodels.distributions.discrete.DiscretizedModel.hessian_factor#
- DiscretizedModel.hessian_factor(params, scale=None, observed=True)#
Weights for calculating Hessian
- Parameters:
- params
ndarray Parameter at which Hessian is evaluated.
- scale
Noneorfloat,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.
- observedbool,
optional If True, then the observed Hessian is returned. If false then the expected information matrix is returned.
- params
- Returns:
- hessian_factor
ndarray, 1d A 1d weight vector used in the calculation of the Hessian. The hessian is obtained by (exog.T * hessian_factor).dot(exog) up to the sign and the scaling that the model uses, see the
hessian_factorof the model. For example, the factors ofOLS,WLSandGLSare not divided by the scale and ignore scale and observed.
- hessian_factor