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)
A matrix representing the synthetic Hessian of the Cox model.
A matrix of covariates (design matrix) for the Cox model.
A numeric vector of event times.
A numeric vector of coefficients for the Cox model.
A numeric value representing the hazard constant.