survplot | R Documentation |
Plotting individual survival curves.
survplot( x, i, smooth = TRUE, timepoints = NULL, title = "Estimated survival curve", suppress.inf.time = TRUE, ... )
x |
an object of class |
i |
subject index |
smooth |
which curve of an |
timepoints |
A numeric vector. needed when the time attribute is missing. |
title |
Title of the plot. |
suppress.inf.time |
Do not draw the curve at |
... |
'Other graphical parameters to be passed on to' |
'Invisibly,' the vector of survival probabilities that are plotted.
Hunyong Cho, Nicholas P. Jewell, and Michael R. Kosorok.
Cho H., Jewell N. J., and Kosorok M. R. (2020+). "Interval censored recursive forests"
# rats data example. # Note that this is a toy example. Use a larger ntree and nfold in practice. data(rat2) set.seed(1) rats.icrf <- icrf(~ dose.lvl + weight + male + cage.no, data = rat2, data.type = "currentstatus", currentstatus.label = c("survtime", "tumor"), returnBest = TRUE, ntree=10, nfold=3) survplot(rats.icrf, c(1,3,5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.