sMSROC_plot {sMSROC}R Documentation

Plot of the sMS ROC curve estimate

Description

Provides informative plots of the sMS ROC curve estimates.

Usage

sMSROC_plot(sMS, m.value)

Arguments

sMS

object of class sMS returned from function sMSROC.

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.

Details

The function provides two types of graphics:

Value

A list with the following elements:

basic.plot

object that can be used and customized by the tools from the plotROC package.

roc.plot

object of class ggplot. Although it is already customized (title, colors, axis labels, ..., etc.) the end-users can make their own changes by adding the corresponding layers, with the available tools from the ggplot2 package.

See Also

sMSROC

Examples

#  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

[Package sMSROC version 0.1.2 Index]