Taking the Leap - Using ODS Statistical Graphics for Data Visualization Wei Cheng, Isis Pharmaceuticals, Inc.

Slides:



Advertisements
Similar presentations
Summary Statistics/Simple Graphs in SAS/EXCEL/JMP.
Advertisements

Guide to Using Minitab 14 For Basic Statistical Applications
.Graph for Excel Enhancing the Graphics Production Process at the OECD
Statistical Methods Lynne Stokes Department of Statistical Science Lecture 7: Introduction to SAS Programming Language.
Using ODS Regions to Create Custom Reports Kate Morrow, M.S. Statistician Vermont Oxford Network, Burlington, VT.
Converting SAS/GRAPH to ODS Graphics
Multiple Linear Regression
1 Graphics – Part 3 HRP223 – 2013 December 2, 2013 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation.
Copyright © 2011, SAS Institute Inc. All rights reserved. SAS 9.3, Support Options & More SHRUG User Group Meeting, Oct 28, 2011.
Today: Run SAS programs on Saturn (UNIX tutorial) Runs SAS programs on the PC.
SAS Output Delivery System. Find heart in the sashelp library Double click.
What is New in SAS 9.2? Graphics and More. A Brief History of SAS Graphics 6.x 7.x = had the Output Delivery System (ODS) but it was not widely available.
Descriptive Statistics In SAS Exploring Your Data.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
Basic And Advanced SAS Programming
Project Four Modifying Visual Elements and Presentation Formats
With Microsoft ® PowerPoint 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 GO! with Microsoft ® PowerPoint 2010 Chapter 3 Enhancing a.
Copyright © 2007, SAS Institute Inc. All rights reserved. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks.
1 Graphics – Part 2 HRP223 – 2013 November 20, 2013 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation.
1 Graphics HRP223 – 2013 November 18, 2013 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is.
Copyright © 2008, SAS Institute Inc. All rights reserved. SAS Graphics on ODS v9.2 Performance Enhancing Steroids Daniel O’Connor Systems Developer, SAS.
Graphical Reporting of Clinical Trial Data with SAS ODS Graphics
Introduction to SAS Essentials Mastering SAS for Data Analytics
Bay Area SUG June SAS ® 9.2 Implications for Biotech SAS ® 9.2 Implications for Biotech Bay Area SAS User’s Group June 7 th 2010 Sarmad Pirzada,
Copyright © 2004, SAS Institute Inc. All rights reserved. Paul Kent VP SAS Platform Research & Development Forthcoming Changes in SAS.
Introduction to SAS BIO 226 – Spring Outline Windows and common rules Getting the data –The PRINT and CONTENT Procedures Manipulating the data.
Chapter 1 Introduction to SAS ® Enterprise Guide ®
TS02 SAS GTL - Injecting New Life into Graphs
My ODS: Real-World Uses of Modifying Table Templates Steve James Centers for Disease Control and Prevention Atlanta, Ga.
1 Graphics in EG and R HRP223 – 2009 November 16 th, 2009 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation.
Copyright © 2008 SAS Institute Inc. All rights reserved. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks.
ODS Statistical Graphics in SAS 9.2 January 17, 2010.
1 Graphics HRP223 – 2012 November 28, 2012 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is.
Copyright © 2006, SAS Institute Inc. All rights reserved. SAS Enterprise Guide Old Proc – New Tricks? Tim Trussell Academic Program, SAS Canada world diabetes.
Katherine Nicholas. Outline: 1. What is ODS 2. Basic syntax 3. Saving output to files 4. Built-in graphics 5. Identifying objects in output 6. Outputting.
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 Graphics in EG and R HRP223 – 2009 November 16 th, 2009 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation.
Copyright © 2008, SAS Institute Inc. All rights reserved. Interactive Analysis and Data Visualization Using JMP −Dara Hammond, Federal Systems Engineer.
Introduction to Enterprise Guide Jennifer Schmidt Rhonda Ellis Cassandra Hall.
SAS ODS (Output Delivery System) Donald Miller 812 Oswald Tower ;
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.
Frequency, Percentage, and Proportion Statistical Based Graphical Displays.
McGraw-Hill Career Education© 2008 by the McGraw-Hill Companies, Inc. All Rights Reserved. Office Excel 2007 Lab 2 Charting Worksheet Data.
1 Graphics – Part 2 HRP223 – 2013 November 20, 2013 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation.
PROC GPLOT GPLOT is used to make two dimensional scatter-plots. General Syntax: proc gplot data=data-set options; plot y-variable*x-variable/options; run;
Kaitlyn McConville, Rho ®, Inc. Kristen Much, Rho ®, Inc. PharmaSUG 2015 Paper #DV02.
1 Statistical Software Programming. STAT 6360 –Statistical Software Programming SAS Graphics SAS has two main facilities for producing graphics: 1.ODS.
Customize SAS Output Using ODS Joan Dong. The Output Delivery System (ODS) gives you greater flexibility in generating, storing, and reproducing SAS procedure.
#pharmasug About OMICS Group OMICS Group is an amalgamation of Open Access Publications and worldwide international science conferences and events. Established.
Chapter 8: Using Basic Statistical Procedures “33⅓% of the mice used in the experiment were cured by the test drug; 33⅓% of the test population were unaffected.
Introduction to SAS ODS Graphics September 16, 2015 Rocio Lopez.
ODS TAGSETS - a Powerful Reporting Method Derek. 2 Agenda Understanding the tagset How to use tagsets Conclusion.
SAS Graphical Macros February 17, 2016 Rocio Lopez.
Copyright © 2006, SAS Institute Inc. All rights reserved. Company confidential - for internal use only SAS/IML Studio Ian Sedgwick.
SAS GTL. What we’re going to cover… Some basics Layouts Plots Examples.
Determination of efficient pricing periods using SAS prepared by Voytek Grus for SAS user group, Halifax April 30, 2010.
SAS ® 101 Based on Learning SAS by Example: A Programmer’s Guide Chapters 16 & 17 By Tasha Chapman, Oregon Health Authority.
Introduction to Graphing in SAS
Lesson 4 Descriptive Procedures
Guide to Using Minitab 14 For Basic Statistical Applications
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.
INTRODUCTION TO SGPLOT Zahir Raihan OVERVIEW  ODS Graphics  SGPLOT overview  Plot Content  High value plot statements  High value plot options 
Use of SAS® Graph Template Language and HIGHLOWPLOT to Create a Next-Generation Sequencing Multi-Gene Panel Grid John Bennett Statistical Programmer Genomic.
Outline READ DATA DATA STEPS MERGE DATA PROC IMPORT
Getting Started with the SGPLOT Procedure: A Hands-On Workshop About the Presenter 1/14/2019 Josh Horstman is an independent statistical programming consultant.
Click Headings Above to View Content
Presentation transcript:

Taking the Leap - Using ODS Statistical Graphics for Data Visualization Wei Cheng, Isis Pharmaceuticals, Inc.

Those who can tune that engine well — who solve basic human problems with greater speed and simplicity than those who came before — will profit immensely. Evan Williams, Founder of Blogger and Twitter

Life is a travelling to the edge of knowledge, then a leap taken -- D. H. Lawrence

Outline of Topics  Create statistical graphs from SAS procedures  Create statistical graphs from Statistical Graphics (SG) procedures  Create statistical graphs from Graph Template Language (GTL)  ODS Graphics Designer  ODS Graphics Editor

Outline of Topics  Create statistical graphs from SAS procedures  Create statistical graphs from Statistical Graphics (SG) procedures  Create statistical graphs from Graph Template Language (GTL)  ODS Graphics Designer  ODS Graphics Editor

Outline of Topics  Create statistical graphs from SAS procedures  Create statistical graphs from Statistical Graphics (SG) procedures  Create statistical graphs from Graph Template Language (GTL)  ODS Graphics Designer  ODS Graphics Editor

Outline of Topics  Create statistical graphs from SAS procedures  Create statistical graphs from Statistical Graphics (SG) procedures  Create statistical graphs from Graph Template Language (GTL)  ODS Graphics Designer  ODS Graphics Editor

Outline of Topics  Create statistical graphs from SAS procedures  Create statistical graphs from Statistical Graphics (SG) procedures  Create statistical graphs from Graph Template Language (GTL)  ODS Graphics Designer  ODS Graphics Editor

Procedure ODS Data & Template Data & Template Output Object ODS Output Destination Engine HTMLData SetRTFPDFDocument Styles Data Table Template Store Got Graph? No Statistical Graphics Engine Expressions Functions Yes or Graph

ODS Graphics Basics ods file = … Ods close; ods file = … Ods close;

ODS Graphics Basics ods file = … ods graphics on; Ods close; ods file = … ods graphics on; Ods close;

ODS Graphics Basics ods file = … ods graphics on; ods graphics off; Ods close; ods file = … ods graphics on; ods graphics off; Ods close;

ODS Graphics Basics ods file = … ods graphics on / ; ods graphics off; Ods close; ods file = … ods graphics on / ; ods graphics off; Ods close;

ODS Graphics Basics ods graphics on / ; Options: RESET IMAGENAME ANTIALIAS HEIGHT BORDERSCALE OUTPUTFMT WIDTH IMAGEMAP more-options ods graphics on / ; Options: RESET IMAGENAME ANTIALIAS HEIGHT BORDERSCALE OUTPUTFMT WIDTH IMAGEMAP more-options

Create Statistical Graphs from SAS Procedures ods file = … ods graphics on ; Proc freq data = sashelp.heart; tables bp_status; Run; ods graphics off; Ods close; ods file = … ods graphics on ; Proc freq data = sashelp.heart; tables bp_status; Run; ods graphics off; Ods close;

Create Statistical Graphs from SAS Procedures

ods graphics on ; Proc freq data = sashelp.heart; tables bp_status / plots(only)= freqplot; Run; ods graphics off; ods graphics on ; Proc freq data = sashelp.heart; tables bp_status / plots(only)= freqplot; Run; ods graphics off;

Create Statistical Graphs from SAS Procedures ods graphics on ; Proc freq data = sashelp.heart; tables bp_status / plots(only)= freqplot (type = dot); Run; ods graphics off; ods graphics on ; Proc freq data = sashelp.heart; tables bp_status / plots(only)= freqplot (type = dot); Run; ods graphics off;

Create Statistical Graphs from SAS Procedures

ods graphics on ; Proc freq data = sashelp.heart; tables bp_status / plots(only)= freqplot (type=dot orient = vertical); Run; ods graphics off; ods graphics on ; Proc freq data = sashelp.heart; tables bp_status / plots(only)= freqplot (type=dot orient = vertical); Run; ods graphics off;

Create Statistical Graphs from SAS Procedures

ods graphics on ; Proc freq data = sashelp.heart; tables sex * bp_status / plots (only) = freqplot; Run; ods graphics off; ods graphics on ; Proc freq data = sashelp.heart; tables sex * bp_status / plots (only) = freqplot; Run; ods graphics off;

Create Statistical Graphs from SAS Procedures

ods graphics on ; Proc freq data = sashelp.heart; tables sex * bp_status / plots (only) = freqplot (twoway = grouphorizontal); Run; ods graphics off; ods graphics on ; Proc freq data = sashelp.heart; tables sex * bp_status / plots (only) = freqplot (twoway = grouphorizontal); Run; ods graphics off;

Create Statistical Graphs from SAS Procedures

ods graphics on ; Proc freq data = sashelp.heart; tables sex * bp_status / plots (only) = freqplot (twoway = stacked); Run; ods graphics off; ods graphics on ; Proc freq data = sashelp.heart; tables sex * bp_status / plots (only) = freqplot (twoway = stacked); Run; ods graphics off;

Create Statistical Graphs from SAS Procedures

ods graphics on ; Proc freq data = sashelp.heart; tables bp_status / chisq plots(only)= deviationplot (type = dot); Run; ods graphics off; ods graphics on ; Proc freq data = sashelp.heart; tables bp_status / chisq plots(only)= deviationplot (type = dot); Run; ods graphics off;

Create Statistical Graphs from SAS Procedures

 SAS/STAT (ANOVA, GLM, MIXED, LIFETEST, etc.)  SAS/QC (CAPABILITY, SHEWHART, etc.)  Base SAS (CORR, FREQ, UNIVARIATE)  SAS/ETS (ARIMA, TIMESERIES, VARMAX, etc.)  Other (HPF, HPFENGINE, SAS Risk Dimensions) Create Statistical Graphs from SAS Procedures

Create Statistical Graphs Using SG Procedures New SAS/GRAPH Procedures producing statistical graphs SGPLOT SGPANEL SGSCATTER

Create Statistical Graphs Using SG Procedures Proc sgplot data = sashelp.class; scatter x = height y = weight / group = sex name = “scatter”; loess x = height y = weight / group = sex clm clmtransparency = 0.6 nomarkers; keylegend “scatter” Run;

Create Statistical Graphs Using SG Procedures

Proc sgpanel data = sashelp.heart; panelby weight_status bp_status / layout = lattice; reg x = height y = weight / cli; Run;

Create Statistical Graphs Using SG Procedures

Proc sgscatter data = sashelp.heart; plot (diastolic systolic ) * (weight height) / group = weight_status; Run;

Create Statistical Graphs Using SG Procedures

Proc sgscatter data = sashelp.heart; compare x = (diastolic systolic ) y = weight; Run;

Create Statistical Graphs Using SG Procedures

Animated Bubble Chart by Hans Rosling

Create Statistical Graphs Using GTL Proc template; define statgraph simplereg; beginggraph; entrytitle “Simple Scatter Plot with Regressin Line”; layout overlay; scatterplot x = height y = weight; regressionplot x = height y = weight; endlayout; endgraph; end; Run; Proc template; define statgraph simplereg; beginggraph; entrytitle “Simple Scatter Plot with Regressin Line”; layout overlay; scatterplot x = height y = weight; regressionplot x = height y = weight; endlayout; endgraph; end; Run;

Create Statistical Graphs Using GTL Proc sgrender data = sashelp.class template = simplereg; Run; Proc sgrender data = sashelp.class template = simplereg; Run;

Create Statistical Graphs Using GTL

Proc template; define statgraph myplot; beginggraph; entrytitle “Loess Fit by Gender”; layout overlay; scatterplot x = height y = weight / group = sex name = ‘sex’; loessplot x = height y = weight / group = sex name = ‘loess’;

Create Statistical Graphs Using GTL layout gridded / autoalign = (topleft); discretelegend ‘sex’ ‘loess’ / opaque = false border = true; endlayout; endgraph; End; Run;

Create Statistical Graphs Using GTL

ODS Graphics Designer

ODS Graphics Editor

TaskWhat to Use? Graphs for statistical analysesStatistical procedures Stand-alone graphsSG Procedures Highly customized graphsGTL Enhancing graphs for presentationODS Graphics Editor Graphs without programmingODS Graphics Designer

Conclusion ODS Statistical Graphics is an exciting new functionality provided by SAS. It greatly enhances the ability of data visualization integrates the graphic display with the tabular output automates the production of statistical graphics maintains the ability to customize the displays by modifying the templates and styles create statistical graphs without knowledge of programming

Conclusion With SAS ODS Graphics, simpler and minimal coding is required to generate high quality statistical graphs. By spending less time in coding to improve the visual appearance of graphs for data visualization, we can focus more on the statistical analysis.

References  SAS/STAT 12.3 User’s Guide Chapter 21 Statistical Graphics Using ODS  SAS/STAT 12.3 User’s Guide Chapter 22 ODS Graphics Template Modification  SAS/STAT 12.3 User’s Guide  SAS User’s Guide for SG Procedures, Graph Template Language

About the Speaker Speaker: Location of company: Telephone: Wei Cheng Isis Pharmaceuticals, Inc Gazelle Court Carlsbad, CA (760)