Learn R Programming

survivalSL (version 0.97.1)

plot.rocrisca: Plot Method for 'rocrisca' Objects

Description

A plot of ROC curves is produced.

Usage

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

Value

No return value for this S3 method.

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.

See Also

Examples

Run this code
data(dataDIVAT3)

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

dataDIVAT3 <- dataDIVAT3[1:400,]

# The time-dependent ROC curve to evaluate the
# capacities of the recipient age for the prognosis of post-kidney
# transplant mortality up to 2000 days.

# Compute the raw sensitivity and specificity
roc1 <- roc(times="death.time", failures="death", variable="ageR",
confounders=~1, data=dataDIVAT3, pro.time=2000,
precision=seq(0.1,0.9, by=0.2))

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

Run the code above in your browser using DataLab