plotObsEst: Pairwise scatter plots of the survival times

Description Usage Arguments Details Value References Examples

View source: R/plotObsEst.R

Description

This function generates pairwise scatter plots.

Usage

1
2
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.

Details

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

Value

This provides a scatter plot of the 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

1
2
3
4
5
6
7
8
9
#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)

AdapEnetClass documentation built on May 2, 2019, 7:55 a.m.