intcensAUC: Compute the AUC for ROC curves for Interval Censored Survival...

Description Usage Arguments Value Examples

View source: R/intcensAUC.R

Description

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

Usage

1
  intcensAUC(ROCdata)  	

Arguments

ROCdata

A dataframe from the function intcensROC

Value

A scalar for AUC.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## 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)

intcensROC documentation built on June 15, 2021, 9:07 a.m.