get_cox_partial_likelihood | R Documentation |
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)
X |
A matrix of covariates with rows representing observations and columns representing features. |
time |
A vector of time-to-event data. |
status |
A vector indicating the event status (1 for event occurred, 0 for censored). |
coefs |
A vector of regression coefficients. |
entry_points |
A vector of entry points (optional). Defaults to NULL, in which case a vector of zeros is used. |
A numeric scalar representing the partial likelihood of the Cox model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.