get_cox_syn_gradient {catalytic} | R Documentation |
Compute the gradient of the synthetic Cox proportional hazards model
Description
This function calculates the gradient of the synthetic Cox proportional hazards model using a vectorized approach.
Usage
get_cox_syn_gradient(X, time, coefs, hazard_constant)
Arguments
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. |
Value
A numeric vector representing the gradient of the synthetic Cox model.
[Package catalytic version 0.1.0 Index]