ciROCbin | R Documentation |
Function ciROCbin
estimates confidence interval
of binormally estimated ROC curve.
ciROCbin(rocit_bin, level, nboot)
rocit_bin |
An object of class |
level |
Desired level of confidence to be estimated. |
nboot |
Number of bootstrap samples, used to estimate |
A list object containing TPR, upper and lower bound of TPR at certain FPR values.
ciROCbin
is used internally in ciROC.rocit
of ROCit.
rocit
, ciROC
, plot.rocci
data("Loan")
score <- Loan$Score
class <- ifelse(Loan$Status == "CO", 1, 0)
rocit_bin <- rocit(score = score, class = class, method = "bin")
ciROC_bin90 <- ciROCbin(rocit_bin, level = 0.9, nboot = 300)
TPR <- ciROC_bin90$TPR
FPR <- ciROC_bin90$FPR
Upper90 <- ciROC_bin90$UpperTPR
Lower90 <- ciROC_bin90$LowerTPR
plot(TPR~FPR, type = "l")
lines(Upper90~FPR, lty = 2)
lines(Lower90~FPR, lty = 2)
grid()
legend("bottomright", c("Binormal ROC curve", "90% CI"), lty = c(1,2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.