# NOT RUN {
require(survival)
aml_model <- with(aml, survfit(Surv(time, status)~x))
col1 <- adjustcolor("red",0.2); col2 <- adjustcolor("blue",0.2)
survPlot(xmax=50)
confIntArea(aml_model, col=col1, group=1)
confIntArea(aml_model, col=col2, group=2)
survCurve(aml_model, group=1)
survCurve(aml_model, group=2, lty=2)
survLable("maintain", 1, 0.2, bgcol.flag=col1)
survLable("non-maint.", 1, 0.1, bgcol.flag=col2, lty.flag=2)
# }
Run the code above in your browser using DataLab