get_cox_syn_hessian | R Documentation |
This function computes the synthetic Hessian matrix for the Cox proportional hazards model. The Hessian is calculated by summing the contributions from each individual observation, scaled by the hazard constant and the time of the event.
get_cox_syn_hessian(X, time, coefs, hazard_constant)
X |
A matrix of covariates (design matrix) for the Cox model. |
time |
A numeric vector of event times. |
coefs |
A numeric vector of coefficients for the Cox model. |
hazard_constant |
A numeric value representing the hazard constant. |
A matrix representing the synthetic Hessian of the Cox model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.