Learn R Programming

RISCA (version 0.9)

plot.rocrisca: Plot Method for 'rocrisca' Objects

Description

A plot of ROC curves is produced. In the RISCA package, it concerns the functions roc.binary, roc.net, roc.summary, and roc.time.

Usage

# S3 method for rocrisca
plot(x, ..., information=TRUE)

Arguments

x

An object of class rocrisca, returned by the functions roc.binary, roc.net, roc.summary, and roc.time.

...

Additional arguments affecting the plot.

information

A logical value indicating whether the non-information line is plotted. The default values is TRUE.

References

Le Borgne et al. Standardized and weighted time-dependent ROC curves to evaluate the intrinsic prognostic capacities of a marker by taking into account confounding factors. Manuscript submitted. Stat Methods Med Res. 27(11):3397-3410, 2018. <doi: 10.1177/ 0962280217702416.>

Examples

Run this code
# NOT RUN {
# import and attach the data example

data(dataDIVAT3)

# A subgroup analysis to reduce the time needed for this exemple

dataDIVAT3 <- dataDIVAT3[1:400,]

# The ROC curve to evaluate the crude capacities of the recipient age for the
# prognosis of post kidney transplant mortality (we ignore the censoring process)

roc1 <- roc.binary(status="death", variable="ageR", confounders=~1,
data=dataDIVAT3, precision=seq(0.1,0.9, by=0.1) )

# The corresponding ROC graph with color and symbols

plot(roc1, type="b", xlab="1-specificity", ylab="sensibility", col=2, pch=2)
# }

Run the code above in your browser using DataLab