get_cox_partial_likelihood: Compute the Partial Likelihood for the Cox Proportional...

get_cox_partial_likelihoodR Documentation

Compute the Partial Likelihood for the Cox Proportional Hazards Model

Description

This function calculates the partial likelihood for the Cox proportional hazards model. The partial likelihood is computed for the censored observations in the dataset.

Usage

get_cox_partial_likelihood(X, time, status, coefs, entry_points)

Arguments

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.

Value

A numeric scalar representing the partial likelihood of the Cox model.


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