Function for plotting the cross-validated survival distributions of a sbh
object. It plots the
cross-validated Kaplan-Meir estimates of survival distributions between the highest risk (inbox) versus
lower-risk (outbox) groups of observations (PRSP), or between the two specified fixed groups (PRGSP),
if this option is used. The plot is done for a given peeling step (or number of steps) of the peeling sequence
(inner loop of our PRSP or PRGSP) algorithm) of the sbh
object, as specified by the user.
plot_km(object,
main = NULL,
xlab = "Time",
ylab = "Probability",
ci = TRUE,
precision = 1e-3,
mark = 3,
col = ifelse(test = object$cvarg$peelcriterion != "grp",
yes = c(1,2),
no = c(3,4)),
lty = 1,
lwd = 0.5,
cex = 0.5,
steps = 1:object$cvfit$cv.nsteps,
add.caption = TRUE,
text.caption = ifelse(test = object$cvarg$peelcriterion != "grp",
yes = c("outbox","inbox"),
no = levels(object$groups)),
nr = 3,
nc = 4,
device = NULL,
file = "Survival Plots",
path = getwd(),
horizontal = TRUE,
width = 11,
height = 8.5, ...)
Object of class sbh
as generated by the main function sbh
.
Character
vector
. Main Title.
Defaults to NULL
.
Character
vector
. X-axis label.
Defaults to "Time".
Character
vector
. Y-axis label.
Defaults to "Probability".
Logical
scalar. Shall the 95% confidence interval be plotted?
Defaults to TRUE
.
Precision of log-rank \(p\)-values of separation between two survival curves. Defaults to 1e-3.
Integer
scalar of mark parameter, which will be used to label the inbox and outbox curves.
Defaults to 3.
Integer
scalar specifying the color of the inbox and outbox curves
(Defaults to c(1,2)
), or of the two groups (Defaults to c(3,4)
),
depending on object$cvarg$peelcriterion
.
Integer
scalar. Line type for the survival curve.
Defaults to 1.
Numeric
scalar. Line width for the survival curve.
Defaults to 0.5.
Numeric
scalar specifying the size of the marks,
symbol expansion used for titles, captions, and axis labels.
Defaults to 0.5.
Integer
vector
. Vector of peeling steps at which to plot the survival curves.
Defaults to all the peeling steps of sbh
object object
.
Logical
scalar. Shall the caption be plotted?
Defaults to TRUE
.
Character
vector
of caption content.
Defaults to {"outbox","inbox"}, or levels(object$groups)
,
depending on object$cvarg$peelcriterion
.
Integer
scalar of the number of rows in the plot.
Defaults to 3.
Integer
scalar of the number of columns in the plot.
Defaults to 4.
Graphic display device in {NULL
, "PS", "PDF"}.
Defaults to NULL
(standard output screen).
Currently implemented graphic display devices are "PS" (Postscript) or "PDF" (Portable Document Format).
File name for output graphic. Defaults to "Survival Plots".
Absolute path (without final (back)slash separator). Defaults to the working directory path.
Logical
scalar. Orientation of the printed image.
Defaults to TRUE
, that is potrait orientation.
Numeric
scalar. Width of the graphics region in inches.
Defaults to 11.
Numeric
scalar. Height of the graphics region in inches.
Defaults to 8.5.
Generic arguments passed to other plotting functions, including plot.survfit
(R package survival).
Invisible. None. Displays the plot(s) on the specified device
.
This work made use of the High Performance Computing Resource in the Core Facility for Advanced Research Computing at Case Western Reserve University. This project was partially funded by the National Institutes of Health NIH - National Cancer Institute (R01-CA160593) to J-E. Dazard and J.S. Rao.
Some of the plotting parameters are further defined in the function plot.survfit
(R package survival).
Step #0 always corresponds to the situation where the starting box covers the entire test-set data before peeling.
Cross-validated LRT, LHR of inbox samples and log-rank \(p\)-values of separation are shown at the bottom of the plot
with the corresponding peeling step. \(P\)-values are lower-bounded by the precision limit given by \(1/A\),
where \(A\) is the number of permutations.
Dazard J-E. and Rao J.S. (2018). "Variable Selection Strategies for High-Dimensional Survival Bump Hunting using Recursive Peeling Methods." (in prep).
Rao J.S., Huilin Y. and Dazard J-E. (2018). "Disparity Subtyping: Bringing Precision Medicine Closer to Disparity Science." (in prep).
Diaz-Pachon D.A., Saenz J.P., Dazard J-E. and Rao J.S. (2018). "Mode Hunting through Active Information." (in press).
Diaz-Pachon D.A., Dazard J-E. and Rao J.S. (2017). "Unsupervised Bump Hunting Using Principal Components." In: Ahmed SE, editor. Big and Complex Data Analysis: Methodologies and Applications. Contributions to Statistics, vol. Edited Refereed Volume. Springer International Publishing, Cham Switzerland, p. 325-345.
Yi C. and Huang J. (2017). "Semismooth Newton Coordinate Descent Algorithm for Elastic-Net Penalized Huber Loss Regression and Quantile Regression." J. Comp Graph. Statistics, 26(3):547-557.
Dazard J-E., Choe M., LeBlanc M. and Rao J.S. (2016). "Cross-validation and Peeling Strategies for Survival Bump Hunting using Recursive Peeling Methods." Statistical Analysis and Data Mining, 9(1):12-42.
Dazard J-E., Choe M., LeBlanc M. and Rao J.S. (2015). "R package PRIMsrc: Bump Hunting by Patient Rule Induction Method for Survival, Regression and Classification." In JSM Proceedings, Statistical Programmers and Analysts Section. Seattle, WA, USA. American Statistical Association IMS - JSM, p. 650-664.
Dazard J-E., Choe M., LeBlanc M. and Rao J.S. (2014). "Cross-Validation of Survival Bump Hunting by Recursive Peeling Methods." In JSM Proceedings, Survival Methods for Risk Estimation/Prediction Section. Boston, MA, USA. American Statistical Association IMS - JSM, p. 3366-3380.
Dazard J-E. and J.S. Rao (2010). "Local Sparse Bump Hunting." J. Comp Graph. Statistics, 19(4):900-92.
plot.survfit
(R package survival)