IPCW | R Documentation |
Create the Inverse Probability of Censoring Weighting (IPCW) using the Kaplan-Meier (KM) method. print are used to provide a short summary of lple outputs.
IPCW(object)
ipcw(time, event)
object |
a survival object created by Surv(time, event). |
time |
the survival time. |
event |
the status indicator, normally 0=alive, 1=dead. |
survfit
is called to fit a KM model for the censoring time.
A vector for the survival function of the censoring time is returned.
Bingshu E. Chen
The IPCW function is used in brier
to calculate the brier score and ibs
to calculate the
integrated brier score.
# See example in brier ibs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.