surv.tree | R Documentation |
Plot with a Kaplan-Meier curve with node leafs identified by recursive partitioning.
surv.tree(
rpart.tree,
tree,
time.var,
event.var,
return.data = F,
curve.type = "survival"
)
rpart.tree |
A object generated through |
tree |
Specify the tree name, i.e. "original" or "pruned". |
time.var |
Survival time variable. |
event.var |
Variable with event censoring. |
return.data |
Metadata with node leafs distribution should be returned. Default = |
curve.type |
Plotting curve methodology, i.e. "survival" (default) or "cumulative" (for progressions). |
## Not run:
surv.tree(rpart.tree = tr, tree = "original", time.var = "PFS", event.var = "PFS_c")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.