PHReg.weighted_covariate_averages(params)
[source]
Returns the hazard-weighted average of covariate values for subjects who are at-risk at a particular time.
Parameters: | params (ndarray) – Parameter vector |
---|---|
Returns: |
averages – averages[stx][i,:] is a row vector containing the weighted average values (for all the covariates) of at-risk subjects a the i^th largest observed failure time in stratum stx , using the hazard multipliers as weights. |
Return type: | list of ndarrays |
Used to calculate leverages and score residuals.
© 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.weighted_covariate_averages.html