This function calculates the partial likelihood for the Cox proportional hazards model. The partial likelihood is computed for the censored observations in the dataset.
get_cox_partial_likelihood(X, time, status, coefs, entry_points)
A numeric scalar representing the partial likelihood of the Cox model.
A matrix of covariates with rows representing observations and columns representing features.
A vector of time-to-event data.
A vector indicating the event status (1 for event occurred, 0 for censored).
A vector of regression coefficients.
A vector of entry points (optional). Defaults to NULL, in which case a vector of zeros is used.