Get the posterior predictive distribution of conditional survival times for a SINGLE posterior sample. This function should be interated over all posterior samples.
1 2 | get_single_conditional_times(time, event, trt, distribution,
n_events = NA, params)
|
time |
positive numeric. Survival times |
event |
logical or 0/1. |
trt |
0/1 vector. Indicates assignment to treatment or control |
n_events |
numeric or NULL. How many events should be observed before censoring. If NA, there will be no censoring time. |
log_HR |
log hazard ratio, usually posterior sample |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.