ipcw: Inverse probability of censoring weighting (IPCW)

View source: R/ibs.R

IPCWR Documentation

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)

Arguments

object

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

time

the survival time.

event

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

Details

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

Value

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

Author(s)

Bingshu E. Chen

See Also

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

Examples

# See example in brier ibs

statapps/lpl documentation built on June 1, 2025, 6:58 p.m.