Learn R Programming

AROC (version 1.0-4)

plot.AROC: Default AROC plotting

Description

Takes a fitted AROC object produced by AROC.bnp(), AROC.bsp(), AROC.sp(), AROC.kernel(), pooledROC.BB() or pooledROC.emp() and plots the covariate-adjusted ROC curve (AROC) and associated area under the AROC (AAUC); or the pooled ROC curve and associated AUC.

Usage

# S3 method for AROC
plot(x, ...)

Arguments

x

an object of class AROC as produced by AROC.bnp(), AROC.bsp(), AROC.sp(), AROC.kernel(), pooledROC.BB() or pooledROC.emp()

further arguments passed to or from other methods

See Also

AROC.bnp, AROC.bsp, AROC.sp, AROC.kernel, pooledROC.BB or pooledROC.emp.

Examples

Run this code
# NOT RUN {
library(AROC)
data(psa)
# Select the last measurement
newpsa <- psa[!duplicated(psa$id, fromLast = TRUE),]

# Log-transform the biomarker
newpsa$l_marker1 <- log(newpsa$marker1)
# }
# NOT RUN {
m0 <- AROC.bnp(formula.healthy = l_marker1 ~ f(age, K = 0),
group = "status", tag.healthy = 0, data = newpsa, scale = TRUE,
p = seq(0,1,l=101), compute.lpml = TRUE, compute.WAIC = TRUE,
a = 2, b = 0.5, L = 10, nsim = 5000, nburn = 1000)

plot(m0)
# }

Run the code above in your browser using DataLab