plot.predict.gfcure {gfcure}R Documentation

Plot method for the predict of accelerated failure time mixture cure model fits

Description

"plot.predict.gfcure" plot predicted survival probabilities, obtained from "predict.gfcure".

Usage

## 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), ...)

Arguments

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

Details

"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.

Value

A plot will be generated in a graphics window

Author(s)

Yingwei Peng

Examples


z = gfcure(Surv(time, cens) ~ x1, ~ x1, data = simdata)
plot(predict(z, newdata = simdata[1, ]))


[Package gfcure version 2.0 Index]