This function returns the indices of the risk set for a given time of interest in the Cox proportional hazards model.
get_cox_risk_set_idx(
time_of_interest,
entry_vector,
time_vector,
status_vector
)
A vector of indices representing the subjects at risk at the specified time of interest.
A numeric value representing the time at which the risk set is calculated.
A numeric vector representing the entry times of subjects.
A numeric vector representing the time-to-event or censoring times of subjects.
A numeric vector indicating event occurrence (1) or censoring (0) for each subject.