Learn R Programming

fastml (version 0.7.7)

create_censor_eval: Create Censoring Distribution Evaluator

Description

Creates a function to evaluate the survival function of the censoring distribution, \(G(t) = P(C > t)\), using a Kaplan-Meier estimator.

Usage

create_censor_eval(time_vec, status_vec)

Value

A function that takes a numeric vector of times and returns the estimated censoring survival probabilities \(G(t)\) at those times.

Arguments

time_vec

Numeric vector of survival/censoring times.

status_vec

Numeric vector of event statuses (1=event, 0=censored).