Download presentation
Presentation is loading. Please wait.
Published byBlanche Garrett Modified over 8 years ago
1
Kaplan-Meier Survival Plotting Macro %NEWSURV Jeffrey Meyers Mayo Clinic, Rochester, MN
2
2 Macro Overview (Plot)
3
3 Macro Overview (Statistical Report) General Statistical Report Table Example Event/Total Median (95% CI) † Hazard Ratio (95% CI) ‡ Survival Estimates (95% CI) † P-value SASHELP.BMT Data set with no Class Variable All Patients83/1371.3 (1.0-2.9)1 Years: 58.3 (50.6-67.2) 2 Years: 42.0 (34.5-51.2) This is the footnote for this model SASHELP.BMT Data set with Class Variable Group0.0010 $ ALL24/381.1 (0.5-NE)Ref1 Years: 54.9 (41.1-73.4) 2 Years: 35.3 (22.7-54.8) AML-High Risk34/450.5 (0.3-1.2)1.47 (0.87-2.48)1 Years: 37.8 (26.0-55.0) 2 Years: 24.4 (14.6-40.9) AML-Low Risk25/546.0 (1.9-NE)0.56 (0.32-0.99)1 Years: 77.8 (67.4-89.7) 2 Years: 61.1 (49.4-75.6) This is the footnote for this model † Kaplan-Meier method; ‡ Cox model; $ Score test; This also allows an overall footnote
4
4 Sample Dataset SASHELP.BMT SAS 9.3 GROUP – categorical Acute Lymphoblastic Leukemia (ALL) Acute Myeloid Leukemia (AML) »High Risk and Low Risk T – time from transplant STATUS – survival status 0=Alive 1=Dead
5
5 Output Methods RTF, PDF, HTML, Listing Various file types (PNG, JPEG, TIFF, EMF, …) DPI settings Scalable vector graphics (9.3 and later) From macro vs. within ODS tags
6
6 Error Checking Macro checks most parameter input Custom error messages: ERROR: (Model 1: DISPLAY): TOTL is not in the list of valid values ERROR: (Model 1: DISPLAY): Possible values are LEGEND|HR|MEDIAN|TOTAL|EVENT|TIMELIST| PVAL|TABLECOMMENTS ERROR: 1 pre-run errors listed ERROR: Macro NEWSURV will cease
7
7 Computed Statistics 1 LIFETEST procedures, up to 2 PHREG procedures N patients, N events Median time-to-event Kaplan-Meier event-free rate Cox proportional hazards ratio Univariate and adjusted P-value Univariate and adjusted Patients-at-risk numbers
8
8 Only Required Variables Required Parameters DATA TIME CENS CEN_VL
9
9 Dataset Transformations XDIVISOR CLASS WHERE LANDMARK
10
10 Line and Axes Transformations COLOR PATTERN Axis options Label Minimum Maximum Increment
11
11 Plot Summary Table Options DISPLAY Class options Alignment Order Reference Time-points Multiple Unit label P-value Model 5 options Stratification
12
12 New Features Border and Wall options Events/N formats Split headers Time-point without unit Reference text Factor level comparison P-values
13
13 Patients-at-Risk Table Variations Labels 3 location options Automatic Values Increment Color Location
14
14 Patients-at-Risk Table Variations Header Alignment Turn on/off User specified text
15
15 Patients-at-Risk Table Variations
16
16 Patients-at-Risk Table Variations
17
17 Lattice of Plots Each cell individually customizable Overall title Cell titles Overall footnote Cell footnotes 1-S Plot
18
18 Closing %NEWSURV greatly reduces effort required to build a Kaplan-Meier survival plot Graph Template Language greatly reduces effort of building publication quality plots Goals for the future: Add capabilities for competing risks/cumulative incidence Add ability to enter pre-built data set to be plotted
19
19 Contact Information Name: Jeffrey Meyers Enterprise: Mayo Clinic Address: 200 1st St SW City, State ZIP: Rochester, MN 55905 Work Phone: 507-266-2711 E-mail: Meyers.Jeffrey@mayo.edu Meyers.Jeffrey@mayo.edu jpmeyers.spa@gmail.com Twitter: jmeyers_spa SAS Community Wiki Page: LinkLink
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.