Learn R Programming

AdapEnetClass (version 1.2)

plotObsEst: Pairwise scatter plots of the survival times

Description

This function generates pairwise scatter plots.

Usage

plotObsEst(yObs, yEst, delta, xlab = NULL, ylab = NULL, title = NULL, legendplot = TRUE, legendpos = "topleft", maxvalue = NULL, minvalue = NULL)

Arguments

yObs
observed survival times.
yEst
predicted survival times.
delta
status. it includes value 1 for uncensored and value 0 for censored subject.
xlab
x-axis title. Default is NULL.
ylab
y-axis title. Default is NULL.
title
main title of the plot.
legendplot
if TRUE, plot the legend.
legendpos
position of the legend in the plot.
maxvalue
maximum value of the yObs and yEst. Default is Null.
minvalue
minimum value of the yObs and yEst. Default is Null.

Value

Details

This function generates pairwise scatter plots of the observed and predicted survival times.

References

Khan and Shaw (2015). Variable Selection for Survival Data with a Class of Adaptive Elastic Net Techniques. Statistics and Computing (published online; DOI: 10.1007/s11222-015-9555-8). Also available in http://arxiv.org/abs/1312.2079.

Examples

Run this code
#For a hypothetical data
y<-c(12,33,22,34,11,23)
delta<-c(1,0,0,1,0,1)
yEst<-c(11,30,24,30,6,13)

#plotObsEst: scatter plotting of the pairwise survival times 
plot<-plotObsEst(y, yEst, delta, xlab = NULL, ylab = NULL, title = "Predicted 
versus Observed Survival times", legendplot = TRUE, legendpos = "topleft", 
maxvalue = NULL, minvalue = NULL)

Run the code above in your browser using DataLab