Learn R Programming

dynpred (version 0.1.2)

AUCw: Calculate dynamic AUC(t) curve

Description

Calculate dynamic model-free curve of Area Under the Curve values over time, based on the dynamic/incident AUC of Heagerty and Zheng.

Usage

AUCw(formula, data, width)

Arguments

formula
Formula for prediction model to be used as in coxph
data
Data set in which to interpret the formula
width
Width of the window

Value

A data frame with columns
time
The time points t at which AUCw(t) changes value (either t or t+width is an event time point)
AUCw
The AUCw(t) function
and with attribute "width" given as input.

References

van Houwelingen HC, Putter H (2012). Dynamic Prediction in Clinical Survival Analysis. Chapman & Hall.

Examples

Run this code
data(ova)
AUCw(Surv(tyears, d) ~ Karn + Broders + FIGO + Ascites + Diam, data = ova,
  width = 2)

Run the code above in your browser using DataLab