intcensAUC {intcensROC}R Documentation

Compute the AUC for ROC curves for Interval Censored Survival Data

Description

A method to compute area under the curve (AUC) for the receiver operating characteristic (ROC) curve.

Usage

  intcensAUC(ROCdata)  	

Arguments

ROCdata

A dataframe from the function intcensROC

Value

A scalar for AUC.

Examples

## example data of ROC curve
U <- runif(100, min = 0.1, max = 5)
V <- runif(100, min = 0.1, max = 5) + U
Marker <- runif(100, min = 5, max = 10)
Delta  <- sample.int(3, size = 100, replace = TRUE)
pTime <- 4

## compute the ROC curve
res <- intcensROC(U, V, Marker, Delta, pTime, gridNumber = 500)
head(res)

##compute the AUC
auc <- intcensAUC(res)
print(auc)

[Package intcensROC version 0.1.3 Index]