Forest Plotting Analysis Macro %FORESTPLOT (Paper 3419)

Slides:



Advertisements
Similar presentations
Agilent’s MX QPCR Software Tutorial Field Application Scientist
Advertisements

Interactive Reporting v3.2. Multiple Order By Option Set multiple order by options.
HSRP 734: Advanced Statistical Methods July 24, 2008.
Epi Info Software for Public Health For Microsoft Windows®
Chapter 11 Survival Analysis Part 3. 2 Considering Interactions Adapted from "Anderson" leukemia data as presented in Survival Analysis: A Self-Learning.
T T Population Sampling Distribution Purpose Allows the analyst to determine the mean and standard deviation of a sampling distribution.
Assessing Survival: Cox Proportional Hazards Model Peter T. Donnan Professor of Epidemiology and Biostatistics Statistics for Health Research.
©2001 Chariot Software Group Using MicroGrade Classroom Management Software.
Survival analysis Brian Healy, PhD. Previous classes Regression Regression –Linear regression –Multiple regression –Logistic regression.
Stratification and Adjustment
How to Analyze Data? Aravinda Guntupalli. SPSS windows process Data window Variable view window Output window Chart editor window.
1 Chapter 5: Creating Summarized Output 5.1 Generating Summary Statistics 5.2 Creating a Summary Report with the Summary Tables Task 5.3 Creating and Applying.
Groups and Collaboration Sam Wilson Hub Liaison. overview Purpose – what are they for? Creating a Group – getting started Customization – making it your.
Ranjeet Department of Physics & Astrophysics University of Delhi Working with Origin.
StAR web server tutorial for ROC Analysis. ROC Analysis ROC Analysis: This module allows the user to input data for several classifiers to be tested.
Assessing Survival: Cox Proportional Hazards Model
%rtf2data: A utility macro to convert RTF Table to SAS® dataset
01/20151 EPI 5344: Survival Analysis in Epidemiology SAS code and output February 24, 2015 Dr. N. Birkett, School of Epidemiology, Public Health & Preventive.
Introduction to SAS/Graph 9.2 Ken Barz Colorado Prevention Center 22Oct2009 Ken Barz Colorado Prevention Center.
1 (21) EZinfo Introduction. 2 (21) EZinfo  A Software that makes data analysis easy  Reveals patterns, trends, groups, outliers and complex relationships.
Assessing Binary Outcomes: Logistic Regression Peter T. Donnan Professor of Epidemiology and Biostatistics Statistics for Health Research.
SP5 - Neuroinformatics SynapsesSA Tutorial Computational Intelligence Group Technical University of Madrid.
Lecture 3 Topic - Descriptive Procedures Programs 3-4 LSB 4:1-4.4; 4:9:4:11; 8:1-8:5; 5:1-5.2.
11/25/2015Slide 1 Scripts are short programs that repeat sequences of SPSS commands. SPSS includes a computer language called Sax Basic for the creation.
Logic Analyzer ECE-4220 Real-Time Embedded Systems Final Project Dallas Fletchall.
In Stat-I, we described data by three different ways. Qualitative vs Quantitative Discrete vs Continuous Measurement Scales Describing Data Types.
1. Tables, Charts, and Graphs Microsoft Word & Excel 2003.
Tutorial I: Missing Value Analysis
SAS ® is a very powerful tool when producing Graphics. A single graphical data step can easily create a Kaplan Meier Plot, but there is no single graphical.
Approaches to quantitative data analysis Lara Traeger, PhD Methods in Supportive Oncology Research.
Education And Training CTC IT DIVISION PivotLink User Training April 2010.
03/20161 EPI 5344: Survival Analysis in Epidemiology Estimating S(t) from Cox models March 29, 2016 Dr. N. Birkett, School of Epidemiology, Public Health.
Reporting The Facts: The ODSmemo macro suite for making reproducible RTF memos within SAS® Rocio Lopez Cleveland Clinic.
Kaplan-Meier Survival Plotting Macro %NEWSURV Jeffrey Meyers Mayo Clinic, Rochester, Minnesota 1 BB-13.
Spreadsheet I n Concepts & operations. Concepts n Workbook: Excel file n Worksheet: sheet n Row: 1-???? n Column: A - Z, AA - ?? n Cell n Cell address.
A MORE COMPLETE ODS REPORT. What we’re going to talk about…  Creating a title page  Creating an introduction page  Creating long-form text descriptions.
Kaplan-Meier Survival Plotting Macro %NEWSURV Jeffrey Meyers Mayo Clinic, Rochester, MN.
SECTION 6 DESIGN STUDY. What’s in this section: –Design Variables –Design Studies Overview –Specifying an Objective –Execution Display Settings –Output.
ODS Graphics By Example March 16, 2016 Rocio Lopez.
Data Visualization with Tableau
A quick guide to other statistical software
An Introduction to Epi Info 6/7
Microsoft Word Objectives: Word processing using Microsoft Word
EMPA Statistical Analysis
Advantages of sas for reporting
Add More Zing to your Dashboards – Creating Zing Plot Gadgets
Applied Business Forecasting and Regression Analysis
April 18 Intro to survival analysis Le 11.1 – 11.2
Lecture 25.
Generalized Linear Models
Microsoft Excel A Spreadsheet Program.
Performing Mail Merges
Introduction to R Programming with AzureML
Creating Accessible PDFs from Word Docs
Word Processing.
Chapter 8: ODS Graphics ODS graphics were not available prior to SAS 9.2 They have been implemented across a wide range of procedures Functionality isn’t.
SAS Programming Introduction to SAS.
Jayne Tierney1, Angelo Tinazzi2 Sarah Burdett1,Lesley Stewart3
AA-08: Kaplan-Meier Survival Plotting Macro %NEWSURV
Multiple Imputation Using Stata
(Includes setup) FAQ ON DOCUMENTS (Includes setup)
Paul Rockley FSLG - 29th September 2016
Oracle Sales Cloud Sales campaign
Topic 4: Exploring Categorical Data
Beautiful PROC CONTENTS Output Using the ODS Excel Destination
Never Cut and Paste Again
Objectives At the end of this session, students will be able to:
Helen Barraclough, MSc, Ramaswamy Govindan, MD 
SAS/Graph to help data Dose/Concentration consistency review
Presentation transcript:

Forest Plotting Analysis Macro %FORESTPLOT (Paper 3419) Jeffrey Meyers Qian Shi, PhD. Mayo Clinic, Rochester MN The forest plot is a graph commonly associated with meta analysis. It allows for a quick visual comparison of estimates across subgroups or variable levels. They are not as commonly used as other graphics because of the amount of work to produce one. The estimate and any other statistics to be displayed must be calculated, added to a final plot dataset, and then plotted. If a forest plot is comparing multiple model outputs, then the code to produce the statistics becomes replicated and prone to errors. The forest plot macro fully automates multiple types of analyses including Cox proportional hazards regression, logistic regression, Kaplan-Meier event-free rates, and binomial success rates, and gives a vast amount of customization options. The macro also includes the flexibility of being able to input a pre-generated dataset to transform into a high quality forest plot. Copyright © 2010, SAS Institute Inc. All rights reserved.

Forest Plot Example (Graphically Speaking) The forest plot is a graph commonly associated with meta analysis. It allows for a quick visual comparison of estimates across subgroups or variable levels. They are not as commonly used as other graphics because of the amount of work to produce one. The estimate and any other statistics to be displayed must be calculated, added to a final plot dataset, and then plotted. If a forest plot is comparing multiple model outputs, then the code to produce the statistics becomes replicated and prone to errors. Lets look at this graph from Sanjay’s Graphically Speaking blog and assume that each of these models is a single comparison. This would mean up to 9 models would have to be run, combined, and output to make this one graph. I believe this is one of the main contributors to why forest plots are not used as often as other graphics. #SASGF13 Copyright © 2013, SAS Institute Inc. All rights reserved.

Forest Plot Example (%FORESTPLOT) The code to actually produce a forest plot from a dataset is not complicated, especially in SAS 9.4. This is an example of my macro using nearly the same dataset as the previous slide to generate a custom forest plot. The macro has some differences, namely some of the formatting. The FORESTPLOT macro can use pre-generated data to output a forest plot, but that is not its main purpose. #SASGF13 Copyright © 2013, SAS Institute Inc. All rights reserved.

Purpose Creation of high quality forest plots with high level of customizations Automate the calculations of ratios and estimates involved with forest plot Logistic and Cox proportional hazards regression, Kaplan-Meier time-point estimates, binomial success rate, user provided data Analysis across factors of a variable, subgroups, or in Univariate and multivariate models Automate the creation of a dataset most conducive to producing a forest plot #SASGF13 Copyright © 2013, SAS Institute Inc. All rights reserved.

Plot Setup Graph is designed with Graph Template Language (GTL) Two separate versions for SAS 9.2 and 9.3+ Due to limitations within 9.2 alleviated in 9.3+ Nearly every piece of graph is customizable Can be output in many formats (PNG, JPEG, TIFF, EMF, PDF, PS, etc.) Size, location, and name of file customizable Can be included within ODS tags in larger report

Macro Process METHOD Determines Analysis Method Cox Regression Method Kaplan-Meier Estimate Method Transform Dataset into Final Plot Dataset Create Template And Generate Plot Error Checking Logistic Regression Method Analysis + Output Dataset Inputs Binomial Success Rate Method Inputted Data Method This slide will have the “consort diagram” of the macro process flow #SASGF13 Copyright © 2013, SAS Institute Inc. All rights reserved.

Sample Datasets (Logistic/Binomial) Neuralgia dataset provided by SAS Link to dataset creation Treatment: A and B are active arms P stands for Placebo arm Insert table of first several rows of dataset #SASGF13 Copyright © 2013, SAS Institute Inc. All rights reserved.

Sample Datasets (Kaplan-Meier) BMT dataset provided by SAS Located in SASHELP library (version 9.3 or later) Version 9.2 creation T: time from transplant to death Status: 0=Alive, 1=Dead Group=Disease Category ALL=Acute Lymphoblastic Leukemia AML=Acute Myeloid Leukemia Insert first few rows of dataset #SASGF13 Copyright © 2013, SAS Institute Inc. All rights reserved.

Estimates Across Levels of a Factor Statistics In order requested X-axis options Labels, range, type Automatic label Automatic levels Reference line

Customized Title Automatic footnotes Categorical factors Level vs reference Multiple formats Continuous factors Adjustable step size Markers Symbols, colors, size Line thickness Changeable by model Plot walls

Disabled automatic footnotes Spaces between models Headers Super or Subscripts Line breaks Manual footnotes Categorical format 2 levels condensed Continuous format Condensed to one row Disabled automatic footnotes Spaces between models

Column header for model titles Specific factors listed from each model 2 level factors can be combined into one row Model level statistics Concordance N Events/Total P-values Factor level statistics Ratios/Rates

Example of Subgroup Analysis Model Titles Where clauses Separate by model Line-caps disabled Separate p-values by model Multiple time-points Text overflows into plot Add examples of different kinds of forest plots with different formatting #SASGF13 Copyright © 2013, SAS Institute Inc. All rights reserved.

Example of Subgroup Analysis Use of multiple BY variables Pooled value for comparison Multiple formats available Default label Manual label Add examples of different kinds of forest plots with different formatting #SASGF13 Copyright © 2013, SAS Institute Inc. All rights reserved.

Plot Example (SAS 9.2) Scalable vector graphics unavailable Pooled value for comparison More tabular display Reference on own row

Closing Forest plots are a versatile method for displaying data %FORESTPLOT greatly reduces effort required to build a forest plot Goals for the future: More types of analyses such as linear regression Allow more panels of plots and statistics

References First Example Concordance Methods: “Graphically Speaking: Forest Plot with SAS 9.3.” Sanjay Matange, January 6, 2013 Concordance Methods: Cox Regression: Therneau T (2014). _A Package for Survival Analysis in S_. R package version 2.37-7, <URL: http://CRAN.R-project.org/package=survival>. Logistic Regression: cNeil BJ: The meaning and use of the area under a receiver operating characteristic (ROC) curve. Radiology 143:29-36, 1982.

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 jpmeyers.spa@gmail.com Twitter: jmeyers_spa SAS Community Wiki Page: Link The forest plot macro greatly alleviates the amount of effort required to produce a high quality forest plot, and gives a vast amount of customizability to meet the users needs. Forest plots are very useful beyond meta-analysis and are more informative than a basic table.