Learn R Programming

dynpred (version 0.1.2)

scatterplot: Create scatter plot with imputed survival times

Description

Create scatter plot with imputed survival times.

Usage

scatterplot(formula, data, horizon, plot = TRUE, xlab)

Arguments

formula
Formula for prediction model to be used as in coxph
data
Data set in which to interpret the formula
horizon
The horizon, maximum value to be imputed in case of censored observations; default is 1.05 times largest event time
plot
Should the tolerance plot actually be plotted? Default is TRUE
xlab
Label for x-axis

Value

A data frame with columns
x
Predictor (centered at zero)
imputed
(Imputed) survival time
and with attribute "horizon" (copied from input or default).

Details

Imputation is used for censored survival times.

References

Royston P (2001), The lognormal distribution as a model for survival time in cancer, with an emphasis on prognostic factors, Statistica Neerlandica 55, 89-104.

van Houwelingen HC, Putter H (2012). Dynamic Prediction in Clinical Survival Analysis. Chapman & Hall.

Examples

Run this code
data(ova)
scatterplot(Surv(tyears, d) ~ Karn + Broders + FIGO + Ascites + Diam, data = ova)

Run the code above in your browser using DataLab