PHReg.robust_covariance()

statsmodels.duration.hazard_regression.PHReg.robust_covariance

PHReg.robust_covariance(params) [source]

Returns a covariance matrix for the proportional hazards model regresion coefficient estimates that is robust to certain forms of model misspecification.

Parameters:

params : ndarray

The parameter vector at which the covariance matrix is calculated.

Returns:

The robust covariance matrix as a square ndarray.

Notes

This function uses the groups argument to determine groups within which observations may be dependent. The covariance matrix is calculated using the Huber-White “sandwich” approach.

© 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.duration.hazard_regression.PHReg.robust_covariance.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部