GLM.hessian_factor()

statsmodels.genmod.generalized_linear_model.GLM.hessian_factor

GLM.hessian_factor(params, scale=None, observed=True) [source]

Weights for calculating Hessian

Parameters:

params : ndarray

parameter at which Hessian is evaluated

scale : None or float

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.

observed : bool

If True, then the observed Hessian is returned. If false then the expected information matrix is returned.

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)

© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3-clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.genmod.generalized_linear_model.GLM.hessian_factor.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部