This function iterative estimates the kappa value for the synthetic Cox proportional hazards model using a vectorized approach for efficiency.
get_cox_kappa(X, time, status, hazard_constant)
A numeric value representing the estimated kappa for the synthetic Cox model.
A matrix of covariates with rows representing observations and columns representing features.
A vector of time-to-event data.
A vector indicating event occurrence (1 = event, 0 = censored).
A scalar representing the hazard constant. Defaults to NULL, in which case it's calculated internally.