| plot.predict.gfcure {gfcure} | R Documentation |
"plot.predict.gfcure" plot predicted survival probabilities, obtained from "predict.gfcure".
## S3 method for class 'predict.gfcure' plot(object, type = "l", showcure = F, which = 1:length(object$pred), xlab, ylab, ...) ## S3 method for class 'predict.gfcure' lines(object, type = "l", showcure = F, which = 1:length(object$pred), ...)
object |
Object of class inheriting from "predict.gfcure" |
showcure |
If TRUE, the unconditional survival curves are plotted. Otherwise, the conditional survival curves for uncured subjects are plotted |
which |
the row numbers of newdata for which the survival probabilities will be plotted. If missing, survival probabilities from all rows in "newdata" will be plotted. |
... |
other standard graphics arguments |
"plot.predict.gfcure" produces survival probability curves based on the predicted values from "predict.gfcure".
"lines.predict.gfcure" adds survival probability curves based on the predicted values from "predict.gfcure" to an existing graphics device.
A plot will be generated in a graphics window
Yingwei Peng
z = gfcure(Surv(time, cens) ~ x1, ~ x1, data = simdata) plot(predict(z, newdata = simdata[1, ]))