scatterplot {dynpred} | R Documentation |
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
|
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
|
xlab |
Label for x-axis |
Details
Imputation is used for censored survival times.
Value
A data frame with columns
x |
Predictor (centered at zero) |
imputed |
(Imputed) survival time |
and with attribute "horizon"
(copied from input or default).
Author(s)
Hein Putter H.Putter@lumc.nl
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
data(ova)
scatterplot(Surv(tyears, d) ~ Karn + Broders + FIGO + Ascites + Diam, data = ova)