get_cox_hessian | R Documentation |
This function computes the Hessian matrix of the Cox proportional hazards model, which is used for estimating the covariance matrix of the coefficients. The Hessian is calculated by summing contributions from each event time in the risk set.
get_cox_hessian(X, time, status, coefs, entry_points)
X |
A matrix of covariates (design matrix) for the Cox model. |
time |
A numeric vector of event times. |
status |
A numeric vector of event indicators (1 for event, 0 for censored). |
coefs |
A numeric vector of coefficients for the Cox model. |
entry_points |
A numeric vector of entry times for the subjects. Defaults to 0. |
A matrix representing the negative Hessian of the Cox model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.