truncate_pred_event_censor: Truncate 'pred_event_censor' object to minimal that covers a...

View source: R/pred_surv_class.R

truncate_pred_event_censorR Documentation

Truncate pred_event_censor object to minimal that covers a time window

Description

Truncate the time and survival probabilities in a pred_event_censor object to minimal so that predicted/fitted survival and censoring probabilities at end are kept. This function can be used before applying transformations (e.g., DRtransform, Gtransform, IPWtransform) to avoid unnecessary computation. No truncation is applied if end is greater than or equal to the last time in the pred_event_censor object.

Usage

truncate_pred_event_censor(pred_event_censor_obj, end = Inf)

Arguments

pred_event_censor_obj

pred_event_censor object.

end

ending point (inclusive) of at which truncation applies. Default is Inf.

Value

A pred_event_censor object with truncated times.


QIU-Hongxiang-David/SDRsurv documentation built on March 29, 2024, 8:41 a.m.