get_cox_syn_gradient: Compute the gradient of the synthetic Cox proportional...

get_cox_syn_gradientR 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.


catalytic documentation built on April 4, 2025, 5:51 a.m.