Learn R Programming

lpl (version 0.13)

IPCW: Inverse probability of censoring weighting (IPCW)

Description

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.

Usage

IPCW(object)
ipcw(time, event)

Value

A vector for the survival function of the censoring time is returned.

Arguments

object

a survival object created by Surv(time, event).

time

the survival time.

event

the status indicator, normally 0=alive, 1=dead.

Author

Bingshu E. Chen

Details

survfit is called to fit a KM model for the censoring time.

See Also

The IPCW function is used in brierScore to calculate the brier score and ibs to calculate the integrated brier score.

Examples

Run this code
# See example in brier ibs

Run the code above in your browser using DataLab