Tags:
create new tag
, view all tags, tagging instructions
Return to Statistical Graphics Home

Please rate the graphic:

  • 5 stars = highest rating
  • 1 star = lowest rating
  • SCORE = average of all votes

Graph Rating
Score: 0, My vote: 0, Total votes: 0

Please add comments and then click on the "Add comment" button.

 

OriginalStatGraphicsForm edit

Image
Survival Plot
Click on image to enlarge.
Title Basic Survival Plot
Graph_Subgroup General Principles
Code Added Yes
Description Time to event for two treatment groups along with the number at risk located at the bottom of the figure.
Contributor/Email Mat Soukup (email: Mat.Soukup@fda.hhs.gov)
Background Hypothetical example used to compare the distribution of time to recovery of a cold of two treatment groups. Objective is to determine if Active drug reduces duration of a cold.
Special Considerations

Date Original
Original Date 2007
Modified Date

Use/Suitability Exploration
Software Program R
Software R version 2.10
R-Code - Attachment BasicSurvivalPlotTXT.txt
R-Code # From Harell, 'Regression Modeling Strategies'
library(Hmisc,T)
library(Design,T)
group <- as.factor(rep(c('Arm 1','Arm 2'), c(19,21)))
days <- c(143,164,188,188,190,192,206,209,213,216,220,227,230,
234,246,265,304,216,244,142,156,163,198,205,232,232,
233,233,233,233,239,240,261,280,280,296,296,323,204,344)
death <- rep(1,40)
death[c(18,19,39,40)] <- 0
units(death) <- 'Days'
S <- Surv(days, death)

f <- survfit(S~group, type='fleming')

#png('C:/Research/Graphics/Graphs4Display/webpages/classes/pages/images/survplotRMS.png',
# width=500, height=500)
survplot(f, conf='none', col=c('red', 'black'),
n.risk=TRUE, label.curves=FALSE,
lty=c(1,1), lwd=2, cex=1.5)
text(x=200, y=0.4, 'Arm 1', col='red', cex=2)
text(x=270, y=0.55, 'Arm 2', col='black', adj=1, cex=2)
#dev.off()
SAS-Code - Attachment

SAS-Code

Stata-Code - Attachment

Stata-Code

Other Code - Attachment

Other Code

Keywords time to event, Kaplan-Meier survival plot
OPTIONAL FIELDS

References Chambers, J. M., Cleveland, W. S., Kleiner, B. and Tukey, P. A. (1983) Graphical Methods for Data Analysis. Wadsworth & Brooks/Cole.
Datasets

Data

Attached Data

CATEGORIZATIONS

Classification-Evaluation Efficacy
Classification-Graph Type Survival Plot
Graph_Type Survival Plot
Variable Relationship Survival
Data Types Time to Event
Special Cases

Disclaimer The views expressed within CTSpedia are those of the author and must not be taken to represent policy or guidance on the behalf of any organization or institution with which the author is affiliated.
Permission Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT OLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Reference Image survplotRMS_200.jpg
Topic revision: r23 - 30 Mar 2012 - 13:13:38 - MaryBanach
 

Copyright & by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding CTSPedia? Send feedback