plot.rocrisca {survivalSL} | R Documentation |
Plot Method for 'rocrisca' Objects
Description
A plot of ROC curves is produced.
Usage
## S3 method for class 'rocrisca'
plot(x, ..., information=TRUE)
Arguments
x |
An object of class |
... |
Additional arguments affecting the plot. |
information |
A logical value indicating whether the non-information line is plotted. The default values is TRUE. |
Value
No return value for this S3 method.
See Also
Examples
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")
[Package survivalSL version 0.94 Index]