sMSROC_plot | R Documentation |
Provides informative plots of the sMS ROC curve estimates.
sMSROC_plot(sMS, m.value)
sMS |
object of class |
m.value |
marker value. It is an optional parameter that, when indicated, adds over the graphic of the ROC curve, the point which corresponds to that marker value. |
The function provides two types of graphics:
A basic plot approximating the ROC curve by the pairs given by the sequences 1 - SP and SE, from the sMSROC
object. The layers geom_roc()
and roc_style()
from the plotROC
package were added to this plot, which make possible to take advantage of the functionality of this package.
A customized graphic of the ROC curve whose class is ggplot
, obtained approximating the sequences 1 - SP and SE. When te parameter m.value
is indicated, the final plot displays over the ROC curve estimate the point that corresponds to the entered value.
A list with the following elements:
basic.plot |
object that can be used and customized by the tools from the |
roc.plot |
object of class |
sMSROC
# Example of the use of the plot.sMSROC function
data(ktfs)
DT = ktfs
ROC <- sMSROC(marker = DT$score,
status = DT$failure,
observed.time = DT$time,
time = 5,
meth = "S")
plot <- sMSROC_plot(sMS = ROC, m.value = 4.2)
plot$basicplot; plot$rocplot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.