View source: R/plot.pooledROC.R
plot.pooledROC | R Documentation |
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).
## S3 method for class 'pooledROC'
plot(x, main = NULL, ...)
x |
An object of class |
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. |
pooledROC.BB
, pooledROC.emp
, pooledROC.kernel
or pooledROC.dpm
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)
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.