Learn R Programming

catalytic (version 0.1.0)

get_cox_syn_gradient: 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)

Value

A numeric vector representing the gradient of the synthetic Cox model.

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.