View source: R/pred_surv_class.R
| truncate_pred_surv | R Documentation | 
pred_surv object to minimal that covers a time windowTruncate the time and survival probabilities in a pred_surv object to minimal so that predicted/fitted survival probability at end is 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_surv object.
truncate_pred_surv(pred_surv_obj, end = Inf)
| pred_surv_obj | 
 | 
| end | ending point (inclusive) of at which truncation applies. Default is  | 
A pred_surv object with truncated times.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.