View source: R/pred_surv_class.R
| truncate_pred_event_censor | R Documentation |
pred_event_censor object to minimal that covers a time windowTruncate 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.
truncate_pred_event_censor(pred_event_censor_obj, end = Inf)
pred_event_censor_obj |
|
end |
ending point (inclusive) of at which truncation applies. Default is |
A pred_event_censor object with truncated times.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.