get_cox_syn_gradient | R Documentation |
This function calculates the gradient of the synthetic Cox proportional hazards model using a vectorized approach.
get_cox_syn_gradient(X, time, coefs, hazard_constant)
X |
A matrix of covariates with rows representing observations and columns representing features. |
time |
A vector of time-to-event data. |
coefs |
A vector of regression coefficients. |
hazard_constant |
A scalar representing the hazard constant. |
A numeric vector representing the gradient of the synthetic Cox model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.