SAS macro package to automate coding graphs with ClinXport.

Similar documents
From Clicking to Coding: Using ODS Graphics Designer as a Tool to Learn Graph Template Language

Something for Nothing! Converting Plots from SAS/GRAPH to ODS Graphics

When Simpler is Better Visualizing Laboratory Data Using SG Procedures Wei Cheng, Isis Pharmaceuticals, Inc., Carlsbad, CA

Real Time Clinical Trial Oversight with SAS

Introduction to Statistical Graphics Procedures

Stylish Waterfall Graphs using SAS 9.3 and 9.4 Graph Template Language

A Combined AE + CM Graph using SAS

Creating Graphs Using SAS ODS Graphics Designer

CONSORT Diagrams with SG Procedures

Using the SG Procedures to create and enhance scatter plots Peter L. Flom, Peter Flom Consulting, New York, NY

Scientific Graphing in Excel 2007

Fancy Data Visualisations Without Additional Toolkits

PharmaSUG Paper SP09

Building a Template from the Ground Up with GTL

PharmaSUG China

Application Interface for executing a batch of SAS Programs and Checking Logs Sneha Sarmukadam, inventiv Health Clinical, Pune, India

A Simple Interface for defining, programming and managing SAS edit checks

CDISC Variable Mapping and Control Terminology Implementation Made Easy

PhUSE Giuseppe Di Monaco, UCB BioSciences GmbH, Monheim, Germany

Understand and plan a chart Create a chart Move and resize charts and chart objects Apply chart layouts and styles

separate representations of data.

One SAS To Rule Them All

Paper ###-YYYY. SAS Enterprise Guide: A Revolutionary Tool! Jennifer First, Systems Seminar Consultants, Madison, WI

%EventChart: A Macro to Visualize Data with Multiple Timed Events

Standard Safety Visualization Set-up Using Spotfire

Introduction to SAS/GRAPH Statistical Graphics Procedures

Scientific Graphing in Excel 2013

Excel 2010 Charts and Graphs

Easing into Data Exploration, Reporting, and Analytics Using SAS Enterprise Guide

FILLPATTERNS in SGPLOT Graphs Pankhil Shah, PPD, Morrisville, NC

Patricia Guldin, Merck & Co., Inc., Kenilworth, NJ USA

Decimaker: A statistical software using R, Microsoft.NET, R (D)COM Server and graphical libraries

Microsoft Excel 2007 Lesson 7: Charts and Comments

Out of Control! A SAS Macro to Recalculate QC Statistics

Microsoft Office Excel 2016 for Mac

PharmaSUG 2015 Paper PO03

Features and Benefits

PharmaSUG Paper PO10

embedded hmi system zenon Operator Make the best out of your plant: Easy and intuitive handling, secure operation and ergonomic control

DIRECTIONS FOR USE AUTOMATED TESTING HISTORY TEMPLATE for Multiple Myeloma Patients 3/19/2007 Revision 4

ABSTRACT INTRODUCTION THE ODS TAGSET FACILITY

Paper S Data Presentation 101: An Analyst s Perspective

Automated Checking Of Multiple Files Kathyayini Tappeta, Percept Pharma Services, Bridgewater, NJ

Once Written, Twice Applied: The Basics of Array Processing In SAS Elizabeth A. Roth, RAND Corporation, Santa Monica, CA

Need a Scientific Journal Ready Graphic? No Problem!

SAS/GRAPH Introduction. Winfried Jakob, SAS Administrator Canadian Institute for Health Information

Module Five: Customizing Excel

Multiple Forest Plots and the SAS System

Exporting Variable Labels as Column Headers in Excel using SAS Chaitanya Chowdagam, MaxisIT Inc., Metuchen, NJ

Data Edit-checks Integration using ODS Tagset Niraj J. Pandya, Element Technologies Inc., NJ Vinodh Paida, Impressive Systems Inc.

Directions for Using the Canvas-Based Online Instructor Evaluation Tool

Graphing Made Easy with ODS Graphics Procedures

PharmaSUG China. Systematically Reordering Axis Major Tick Values in SAS Graph Brian Shen, PPDI, ShangHai

Run your reports through that last loop to standardize the presentation attributes

Developing Graphical Standards: A Collaborative, Cross-Functional Approach Mayur Uttarwar, Seattle Genetics, Inc., Bothell, WA

PharmaSUG Paper TT11

Unlock SAS Code Automation with the Power of Macros

Converting Annotate to ODS Graphics. Is It Possible?

How Managers and Executives Can Leverage SAS Enterprise Guide

SAS 9 Programming Enhancements Marje Fecht, Prowerk Consulting Ltd Mississauga, Ontario, Canada

An Alternate Way to Create the Standard SDTM Domains

A Visual Revolution Statistical Graphics in SAS 9.2 Bob Newman, Amadeus Software Limited

Enterprise Client Software for the Windows Platform

PharmaSUG Paper PO12

What could ODS graphics do about Box Plot?

Create Metadata Documentation using ExcelXP

How to use Excel Spreadsheets for Graphing

Graphing with Excel. Mr. Heinrich/Mr. Flock R.O.W.V.A. High School, Oneida, IL Physics 4B

The Output Bundle: A Solution for a Fully Documented Program Run

Starting Excel application

THE IMPACT OF DATA VISUALIZATION IN A STUDY OF CHRONIC DISEASE

The Evolution of a SAS/GRAPH Application Jenine Eason, AutoTrader.com, Atlanta, GA

Study Composer: a CRF design tool enabling the re-use of CDISC define.xml metadata

INTRODUCTION TO EXCEL FOR FINANICAL MODELLING Near Future Ltd. Registration no

If the list that you want to name will change In Excel 2007 and later, the easiest way to create.

SAS Graph a Million with the SGPLOT Procedure. Prashant Hebbar, Sanjay Matange

Beyond IF THEN ELSE: Techniques for Conditional Execution of SAS Code Joshua M. Horstman, Nested Loop Consulting, Indianapolis, IN

Microsoft Excel 2007

EXAM Microsoft Excel 2013 Expert Part 1. Buy Full Product.

Using SAS Enterprise Guide with the WIK

EXAM Microsoft Excel 2010 Expert. Buy Full Product.

Using Excel This is only a brief overview that highlights some of the useful points in a spreadsheet program.

Pivot Tables and Pivot Charts Activities

Paper AD12 Using the ODS EXCEL Destination with SAS University Edition to Send Graphs to Excel

A Strip Plot Gets Jittered into a Beeswarm

What s new in SAS 9.2

Creating a Patient Profile using CDISC SDTM Marc Desgrousilliers, Clinovo, Sunnyvale, CA Romain Miralles, Clinovo, Sunnyvale, CA

The Impossible An Organized Statistical Programmer Brian Spruell and Kevin Mcgowan, SRA Inc., Durham, NC

Great Time to Learn GTL

Structured Solutions Inc. Tools MS Project to Excel Export/Import Tools

Interleaving a Dataset with Itself: How and Why

A Fully Automated Approach to Concatenate RTF outputs and Create TOC Zhiping Yan, Covance, Beijing, China Lugang Xie, Merck, Princeton, US

Lab #3. Viewing Data in SAS. Tables in SAS. 171:161: Introduction to Biostatistics Breheny

The first approach to accessing pathology diagnostic information is the use of synoptic worksheets produced by the

A Guided Tour Through the SAS Windowing Environment Casey Cantrell, Clarion Consulting, Los Angeles, CA

Leveraging SAS Visualization Technologies to Increase the Global Competency of the U.S. Workforce

Microsoft Office Excel Create a worksheet group. A worksheet group. Tutorial 6 Working With Multiple Worksheets and Workbooks

A SAS Macro to Generate Caterpillar Plots. Guochen Song, i3 Statprobe, Cary, NC

Controlling the Drawing Space in ODS Graphics by Example

ODS TAGSETS - a Powerful Reporting Method

Transcription:

Paper PP12 SAS macro package to automate coding graphs with ClinXport. Philippe Remusat, ClinBAY, Genappe, Belgium François Vandenhende, ClinBAY, Genappe, Belgium ABSTRACT ClinXport is a tool developed to streamline reporting, and has made its proofs through a wide range of studies, in producing in a simple way tables, listings and figures. One of the particularities of the tool was to reuse easily output layout to avoid a maximum of coding. In particular Clinxport has showed that it was very efficient and friendly to use for the production of listings and tables, but in another side was maybe limited for the creation of figures. The new possibilities brought by the SAS 9.2 version, with the new procedures as SGPLOT or SGRENDER, allow now to automate in the same manner the reporting of the figures. It appears than possibilities are huge especially for making a quick and ready to use program layout or to build a very complex or atypical graphs to make it usable by the professional or the novice. INTRODUCTION SAS 9.2 version has considerably evolved specially regarding the graphical programming with the SG Procedures. The following poster presents a SAS macro package allowing an automation of graphics creation and gives the possibility to use them as a user friendly tool and then to explain how to exploit these new characteristics and implement them in a SAS-reporting view. On the one hand SAS beginner or uninitiated can create or modify, quickly and simply, a large panel of graphs only through a Microsoft Excel interface. On the other hand, the huge flexibility of the tool brings to specialist the possibility to produce all type of graphics, even the most complex, thanks to the options very convenient to implement, either to import through the TEMPLATE procedure. A QUICK RECALL OF HOW CLINXPORT WORKS A brief and general recall of what Clinxport is will help to understand the next steps: Basically, ClinXport is: a/ An Excel file and a set of SAS macro driving all reports in a study b/ Inside the file there is a sheet containing the study specific information, common in all outputs.(study sheet) a sheet containing the complete list of output and their related informations (DOMAIN sheet) in particular: the type of output (table listing figure); the title; input data location and the link to the la sheet containing the needed information to produce the specific output. plat -specific information, will be completed by the user (programmer) to create in a simple way the desired output. Then the output layout can be fully controlled and customized from the Excel workbook. This sheet will be completed by the user (programmer) to create in a simple way the desired output. Then the output layout can be fully controlled and customized from the Excel workbook. Once all of these steps are completed only one click on the interface is needed to produce the report. HOW IT WORKS 1

The purpose of this poster is to explain how with such a tool (as Clinxport) we are able to create every type of graph. The new SAS procedures proposed in SAS 9 are more intuitive and easy to implement in this reporting process. A basic knowledge of the SAS procedure is still needed in this first step but in the future an interface will be added to reduce it. TO WHAT DOES THE TEMPLATE SHEET LOOKS LIKE? The two colored areas (_colvar and _colopt) contain the information entered by user. _colvar identify the variables and type of figure. _colopt identify the matching options. Inside the _colopt area, keywords as $XVAR, $YVAR or $PLOT are added to identify the functionalities of the information of each cell. BASIC GRAPHS We need first to identify the following element (common in the most of graphs) 1/ AXIS X : Name of the X variable (ex: Time TIME) 2/ AXIS Y : Name of the variable of interest (ex: Blood pressure BL_PRESS) 3/ The type of figure : (ex : Box plot VBOX) Once the identification is done, we need to determinate the particularities (options) required for each element 1/ AXIS X : label="time (days)" min=1 max=20 2/ AXIS Y : label="systolic blood pressure" 3/ VBAR : group=age lineattrs=solid etc.. These points are the three most important elements, this is a base in the most of the figures. Multiple other features are of course available.(actually all SAS features for proc SGPLOT and SPANEL are so far usable and some other are added into the reporting system) This will give in the excel sheet: 2

MODIFY A FIGURES Once a graph template is built, nothing is easier to adapt to a new set of data or to complete : some changes to the first example. Since the previous example, we have been asked to 1: present the results in WEEKS and not anymore in DAYS. 2: To focus on the analysis between the week 2.5 and 5 by adding reference lines. 3

We notice that there is no need to go inside the programm. Changes are intuitive, quick and applicable directly from the same template. In our case, only two maniplulations have been necessary: - Apply a transformation to the X variable by a SAS code line directly from the $XVAR cell. - Create a new cell to add the dash lines on the figure. Several features : -Any specifications of PROC SGPLOT and PROC SGPANEL are implementable in this manner (VLINE,SCATTER,SERIE REG etc.. and their related options) - Customize the legend. - Handle a by statement (a same graph is often repeated in an output for several parameters) to make it appear in the title/or an axis. - Change the color, line pattern, symbol...(thanks to the new SAS 9.3 options) - Change the format for the variables (X and Y) and for the axises. ABOUT PROC TEMPLATE OVERVIEW PROC TEMPLATE is the most powerful procedure for graphs in SAS. It is not always easy to handle but all graphical structures can be developed with it. Indeed, it is sometimes asked to create a standard program for producing a figure with very specific or atypical layout and then PROC TEMPLATE can be the solution. The ClinXport graphics macro take into account as well of the PROC TEMPLATE, and so, any template can benefit of the advantages of the tool as it has been showed previously. 4

For example, a template was required to create this particular layout ( Y axis of the first graph is linear and the second is in a logarithmic scale). The call of a defined template is perfectly incorporated in the reporting process, and changes brought by the user can be set up again from the Excel sheet. Here is a part of the code where appear the different dynamic variables: 5

CONCLUSION From now on, the specialist or the neophyte user can handle every type of graph. In the same manner, as listing and table, reuse or adapt the layout of a figure becomes quick, easy and efficient and everything is always done without opening any SAS session. It is still necessary to know the SG options in order to take advantage of the full capacities of the tool but this part will be considerably improved in a near future. REFERENCE: ClinXPORT a software to streamline the analysis and reporting of clinical trials with SAS http://www.google.be/url?sa=t&rct=j&q=clinxport&source=web&cd=3&ved=0cdiqfjac&url=http%3a%2f%2f www.phuse.eu%2fdownload.aspx%3ftype%3dcms%26docid%3d3684&ei=5p5nuopmm9sx0qxjsiggba&us g=afqjcnhpks1ej4iboej-sjnlxr8j2a9aqa CONTACT INFORMATION Your comments and questions are valued and encouraged. Contact the author at: Philippe Remusat ClinBAY 10 rue Bon Air 1470 Genappe Belgium 6

Email: philippe@clinbay.com Web: http://www.clinbay.com TRADEMARK INFORMATION SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. indicates USA registration. Other brand and product names are trademarks of their respective companies. 7