Learn R Programming

rpst (version 1.0.0)

rpst.km: Produces KM-curve plot of a "rpst" object

Description

Produces a KM-curve plot of a "rpst" object.

Usage

rpst.km(object, newdata, ...)

Arguments

object

a "rpst" project.

newdata

New data used for prediction and plot.

additional summary arguments.

References

Zhang, H., Legro, R. S., Zhang, J., Zhang, L., Chen, X., Huang, H., ... & Eisenberg, E. (2010). Decision trees for identifying predictors of treatment effectiveness in clinical trials and its application to ovulation in a study of women with polycystic ovary syndrome.. Human Reproduction, 25(10), 2612-2621.

See Also

rpst, print.rpst, predict.rpst.

Examples

Run this code
#require(survival)
data <- gen.data(n = 20, p = 5, c = 2)
tree <- rpst(data$data, minsize = 2)
print.rpst(tree)

rpst.km(tree,data$data)

##not run##
#data <- gen.data(n = 100, p = 10, c = 2)
#tree <- rpst(data$data, minsize = 2)
#print.rpst(tree)

#rpst.km(tree,data$data)

Run the code above in your browser using DataLab