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

Description Usage Arguments Author(s) References See Also Examples

Description

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

Usage

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

Arguments

object

a "rpst" project.

newdata

New data used for prediction and plot.

...

additional summary arguments.

Author(s)

Yewei Li

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#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)

rpst documentation built on May 2, 2019, 3:33 p.m.

Related to rpst.km in rpst...