Description Usage Arguments Value Examples
A method to compute area under the curve (AUC) for the receiver operating characteristic (ROC) curve.
1 | intcensAUC(ROCdata)
|
ROCdata |
A dataframe from the function |
A scalar for AUC.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.