Learn R Programming

ROCnReg (version 1.0-8)

plot.pooledROC: Default pooledROC plotting

Description

Takes a fitted pooledROC object produced by pooledROC.BB, pooledROC.emp, pooledROC.kernel, or pooledROC.dpm and plots the pooled ROC curve and associated area under the ROC curve (AUC).

Usage

# S3 method for pooledROC
plot(x, main = NULL, ...)

Arguments

x

An object of class pooledROC as produced by pooledROC.BB, pooledROC.emp, pooledROC.kernel or pooledROC.dpm.

main

Character string with the overall title for the plot. If NULL, the default, the method used to estimate the pooled ROC curve is depicted.

...

Further arguments passed to or from other methods.

See Also

pooledROC.BB, pooledROC.emp, pooledROC.kernel or pooledROC.dpm

Examples

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

# Log-transform the biomarker
newpsa$l_marker1 <- log(newpsa$marker1)
# \donttest{
m0_emp <- pooledROC.emp(marker = "l_marker1", group = "status",
tag.h = 0, data = newpsa, p = seq(0,1,l=101), B = 500)

summary(m0_emp)

plot(m0_emp)
# }
# \dontshow{
m0_emp <- pooledROC.emp(marker = "l_marker1", group = "status",
tag.h = 0, data = newpsa, p = seq(0,1,l=101), B = 0)

summary(m0_emp)

plot(m0_emp)
# }

Run the code above in your browser using DataLab