PharmaSUG Paper SP09

Similar documents
Creating Graphs Using SAS ODS Graphics Designer

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

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

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

Real Time Clinical Trial Oversight with SAS

PharmaSUG China

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

ABSTRACT MORE THAN SYNTAX ORGANIZE YOUR WORK THE SAS ENTERPRISE GUIDE PROJECT. Paper 50-30

PharmaSUG Paper PO03

Lecture 1 Getting Started with SAS

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

PhUSE US Connect 2019

A SAS Macro for Generating Informative Cumulative/Point-wise Bar Charts

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

Professional outputs with ODS LATEX

Multiple Graphical and Tabular Reports on One Page, Multiple Ways to Do It Niraj J Pandya, CT, USA

Easy CSR In-Text Table Automation, Oh My

An Efficient Tool for Clinical Data Check

Introduction to SAS/GRAPH Statistical Graphics Procedures

How Managers and Executives Can Leverage SAS Enterprise Guide

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

Customized Flowcharts Using SAS Annotation Abhinav Srivastva, PaxVax Inc., Redwood City, CA

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

A Breeze through SAS options to Enter a Zero-filled row Kajal Tahiliani, ICON Clinical Research, Warrington, PA

PharmaSUG Paper PO10

Making the most of SAS Jobs in LSAF

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

Creating an ADaM Data Set for Correlation Analyses

ODS TAGSETS - a Powerful Reporting Method

APPENDIX 2 Customizing SAS/ASSIST Software

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

CC13 An Automatic Process to Compare Files. Simon Lin, Merck & Co., Inc., Rahway, NJ Huei-Ling Chen, Merck & Co., Inc., Rahway, NJ

Doctor's Prescription to Re-engineer Process of Pinnacle 21 Community Version Friendly ADaM Development

SAS IT Resource Management Forecasting. Setup Specification Document. A SAS White Paper

Automate Clinical Trial Data Issue Checking and Tracking

SAS Studio: A New Way to Program in SAS

A Picture is worth 3000 words!! 3D Visualization using SAS Suhas R. Sanjee, Novartis Institutes for Biomedical Research, INC.

PharmaSUG China Paper 059

Statistics and Data Analysis. Common Pitfalls in SAS Statistical Analysis Macros in a Mass Production Environment

SAS Drug Development Program Portability

Contents. About This Book...1

Cover the Basics, Tool for structuring data checking with SAS Ole Zester, Novo Nordisk, Denmark

How to write ADaM specifications like a ninja.

One Project, Two Teams: The Unblind Leading the Blind

What Do You Mean My CSV Doesn t Match My SAS Dataset?

SAS macro package to automate coding graphs with ClinXport.

Information Visualization

Introduction to ODS Graphics for the Non-Statistician

JUNE 2016 PRIMAVERA P6 8x, CONTRACT MANAGEMENT 14x AND UNIFIER 16x CREATING DASHBOARD REPORTS IN ORACLE BI PUBLISHER

Introduction to Statistical Graphics Procedures

Chapter 28 Saving and Printing Tables. Chapter Table of Contents SAVING AND PRINTING TABLES AS OUTPUT OBJECTS OUTPUT OBJECTS...

Stylish Waterfall Graphs using SAS 9.3 and 9.4 Graph Template Language

What could ODS graphics do about Box Plot?

Assessing superiority/futility in a clinical trial: from multiplicity to simplicity with SAS

ABSTRACT INTRODUCTION THE ODS TAGSET FACILITY

SAS ENTERPRISE GUIDE USER INTERFACE

Working with Composite Endpoints: Constructing Analysis Data Pushpa Saranadasa, Merck & Co., Inc., Upper Gwynedd, PA

Using a Fillable PDF together with SAS for Questionnaire Data Donald Evans, US Department of the Treasury

Reverse-engineer a Reference Curve: Capturing Tabular Data from Graphical Output Brian Fairfield-Carter, ICON Clinical Research, Redwood City, CA

Indenting with Style

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

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

Automation of SDTM Programming in Oncology Disease Response Domain Yiwen Wang, Yu Cheng, Ju Chen Eli Lilly and Company, China

PharmaSUG Paper SP08

INTRODUCTION TO SAS HOW SAS WORKS READING RAW DATA INTO SAS

Getting Started with ODS Statistical Graphics in SAS 9.2 Revised 2009 Robert N. Rodriguez, SAS Institute Inc., Cary, NC

Using the SAS Add-In for Microsoft Office you can access the power of SAS via three key mechanisms:

Seamless Dynamic Web (and Smart Device!) Reporting with SAS D.J. Penix, Pinnacle Solutions, Indianapolis, IN

Using Graph-N-Go With ODS to Easily Present Your Data and Web-Enable Your Graphs Curtis A. Smith, Defense Contract Audit Agency, La Mirada, CA

PharmaSUG China Big Insights in Small Data with RStudio Shiny Mina Chen, Roche Product Development in Asia Pacific, Shanghai, China

Customizing a Multi-Cell Graph Created with SAS ODS Graphics Designer Yanhong Liu, Cincinnati Children s Hospital Medical Center, Cincinnati, OH

PharmaSUG Paper TT11

Main challenges for a SAS programmer stepping in SAS developer s shoes

PharmaSUG Paper PO22

SAS Forecast Server 3.1. Administrator s Guide to Report Administration Tasks

Using GSUBMIT command to customize the interface in SAS Xin Wang, Fountain Medical Technology Co., ltd, Nanjing, China

A Picture Is Worth A Thousand Data Points - Increase Understanding by Mapping Data. Paul Ciarlariello, Sinclair Community College, Dayton, OH

LST in Comparison Sanket Kale, Parexel International Inc., Durham, NC Sajin Johnny, Parexel International Inc., Durham, NC

Paper CC01 Sort Your SAS Graphs and Create a Bookmarked PDF Document Using ODS PDF ABSTRACT INTRODUCTION

Combining TLFs into a Single File Deliverable William Coar, Axio Research, Seattle, WA

Creating a Departmental Standard SAS Enterprise Guide Template

HOW TO DEVELOP A SAS/AF APPLICATION

How to review a CRF - A statistical programmer perspective

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

What Is SAS? CHAPTER 1 Essential Concepts of Base SAS Software

Penetrating the Matrix Justin Z. Smith, William Gui Zupko II, U.S. Census Bureau, Suitland, MD

SAS CLINICAL SYLLABUS. DURATION: - 60 Hours

SESUG 2014 IT-82 SAS-Enterprise Guide for Institutional Research and Other Data Scientists Claudia W. McCann, East Carolina University.

Scrambling of Un-Blinded Data without Scrambling Data Integrity! Jaya Baviskar, Pharmanet/i3, Mumbai, India

The Benefits of Traceability Beyond Just From SDTM to ADaM in CDISC Standards Maggie Ci Jiang, Teva Pharmaceuticals, Great Valley, PA

Edit the Editor: Creating Keyboard Macros in SAS Enterprise Guide

Once the data warehouse is assembled, its customers will likely

Techdata Solution. SAS Analytics (Clinical/Finance/Banking)

Organizing Deliverables for Clinical Trials The Concept of Analyses and its Implementation in EXACT

PharmaSUG China Mina Chen, Roche (China) Holding Ltd.

Euro-BioImaging Preparatory Phase II Project

A Macro to replace PROC REPORT!?

One SAS To Rule Them All

Planning to Pool SDTM by Creating and Maintaining a Sponsor-Specific Controlled Terminology Database

Paper William E Benjamin Jr, Owl Computer Consultancy, LLC

Transcription:

PharmaSUG 2013 - Paper SP09 SAS 9.3: Better graphs, Easier lives for SAS programmers, PK scientists and pharmacometricians Alice Zong, Janssen Research & Development, LLC, Spring House, PA ABSTRACT Data visualization tools are widely used in PK analysis and PK/PD modeling and simulation. To date, even though the datasets are mostly in SAS data format, PK scientists and pharmacometricians usually choose to use other software for the production of graphs; however, this approach often requires changing data types and repeatedly transferring data between functional teams. With the new release of SAS 9.3 and the enhancement of SAS Graphs, it is now much easier for SAS programmers to make graphs to support analysis, modeling and simulation activities. This paper illustrates some commonly used graphs that are currently generated in other software applications, e.g. R/S-PLUS, that can now be generated in SAS. This change has the potential to significantly improve the process and productivity of model-support/based drug development. INTRODUCTION A picture is worth a thousand words. This statement may sound a little exaggerated, but in the world of Pharmacokinetics/Pharmacodynamics (PK/PD), meaningful graphics do play a very important role. In clinical research, tremendous volumes of data are produced in SAS format. Therefore, a more user-friendly tool for creating graphs in SAS would be desirable. To create a graph in SAS before the release of version 9.1, an SAS programmer would typically need to perform an analytical procedure, save the numeric results in an output data set, manipulate the data with the Data step program, and finally display the data with a graphics procedure. These steps became unnecessary when ODS Graphics first became available in SAS 9.1. With the release of SAS 9.3, ODS Graphics moved to Base SAS, introducing more enhancements and eliminating the need for a SAS/GRAPH software license. Many ODS Graphics functionalities also became default settings in SAS 9.3. There are multiple ways to create graphs using ODS Graphics. The program automatically generates graphs for almost all analytical procedures that one can access and edit using ODS Graphics Editor. One can also create graphs using the SG (Statistical Graphics) procedures. Another option is the ODS Graphics Designer, a graphical user interface that uses point-and-click interaction to produce graphs. These three options require no, or minimal, graphic programming knowledge from users. This paper presents three examples to illustrate some commonly used graphs in PK/PD research; each example will use one of the available graphical methods. A more advanced way to create graphs is to use GTL (Graph Template Language), which allows users to create their own complex customized graphs. GTL actually runs in the background of SG procedures and ODS Graphics Designer. When one uses ODS Graphics Designer to create graphs, it automatically generates GTL code, which is accessible from the programming code window. This feature serves as an effective starting point for one who is interested in learning this programming language. These graphic methods can also be easily integrated into SAS macros or other automation tools. With ODS Graphics, making graphs in SAS becomes more intuitive and provides great opportunities for streamlined drug development processes. CASE 1: EARLY DETECTION OF POTENTIAL DATA ERRORS INDIVIDUAL CONCENTRATION-TIME PROFILE USING SG PROCEDURE Data quality is critical in clinical research. In some situations, errors from a small portion of the data can redirect the conclusion of a study. Data errors can occur at any stage in clinical research, e.g. data collection, data transfer and mapping, data formatting, data derivation etc. Prior to PK analysis or modeling, data must be inspected. Early detection of potential data errors can provide benefits in many ways. An individual PK concentration-time profile is a commonly used graph in PK studies. Currently, it takes complex processes and expertise in a number of areas before these graphs are available to PK scientists. In many cases, by 1

the time a PK scientist recognizes an error, it is too late for the data to be corrected. User-friendly graphical tools in SAS can provide opportunities to significantly improve this situation. Now, with the ODS Graphics SG procedure, this type of graph can be easily generated in SAS. Figure 1 is an example of a graph generated using the following SAS code: title "Conc vs Time"; proc sgpanel data=mylib.pk_tm; panelby trt id; scatter x=time y=conc / group=trt ; series x=time y=conc / group=trt; run; Figure 1: Individual Concentration-Time Profiles These simple individual concentration-time profiles can make potential data issues visible. For example, the PK concentration value is questionable for ID 2 at Time 192; there are missing PK samples after Time 150 for ID 3; and the PK concentration values of ID 4 are systematically higher than other subjects. These visual clues can prompt follow-up investigation by the PK scientist to address potential causes of these findings. With this tool, some data errors can be detected as early as the bioanalysis stage. A series of checks at each data collection and process milestone can be easily developed, enabling early data cleaning, data reconciliation and queries. CASE 2: EXPLORING DATA FOR MODEL BUILDING COVARIATE SCREENING USING ODS GRAPHICS DESIGNER All models are wrong, some are useful. To build a model that best represents the real-life situation, pharmacometricians typically exam the observed data thoroughly prior to modeling. These activities are time consuming. It would be beneficial if this review process could be started as soon as raw data is available. Userfriendly graphical tools provide timely visual access for data exploration. Since SAS is the major data type used in clinical research, early data exploration in SAS is desirable. ODS Graphics provides users great opportunities to evaluate the data as soon as they are accessible in SAS format. As a result, unnecessary data merging, reformatting and transferring could be eliminated. 2

ODS Graphics Designer is a graphical user interface that uses point-and-click interaction to produce graphs. The following example demonstrates step-by-step graph building to assist covariate searching in PK/PD modeling. With SAS 9.3, one can start the ODS Graphic Designer from the Tools -> ODS Graphics Designer menu option (Figure 2). The designer can also be started by submitting the macro code %sgdesign; from the Program Editor window. Figure 2: Start ODS Graphics Designer When the ODS Graphic Designer is invoked, the application interface is on. A wide choice of pre-defined graphic templates are displayed. In Figure 3, the Matrix+Histogram option was selected under the Matrix tab of the Graph Gallery window. 3

Figure 3: Graph Gallery Window Then, choose the data to use and assign variables for the graph (Figure 4). Figure 4: Assign Data 4

Click OK, and the graph is displayed (Figure 5). Figure 5: Generated Graph GTL code is automatically generated and can be accessed from View -> code (Figure 6). Figure 6: GTL Code 5

The whole process can be saved as an.sgd file by clicking File -> Save as. The file can then be reused, modified or integrated into an automation program. CASE 3: REPORT YOUR FINDINGS AUTOMATICALLY GENERATED GRAPHS FROM SAS STATISTICAL PROCEDURES More than 70 SAS procedures can now automatically produce ODS Graphics outputs while producing tabular outputs. The graph output can also be sent to an editable.sge file by setting the SGE option in the LISTING destination. By double-clicking the.sge file in the Results window (Figure 7), the graph will open in the ODS Graphics Editor window for editing (Figure 8). The following simple example illustrates this functionality: ods graphics on; ods html style=journal; ods listing sge=on; proc glm data=mylib.covar; ods select ParameterEstimates FitPlot; model cl=weight; quit; ods listing close; ods html close; ods graphics off; Figure 7: Results Viewer Window 6

Figure 8: ODS Graphics Editor Window Edited graphs can be easily placed into reports and presentations. The available styles can also easily coordinate with graphs generated from other software applications, providing a consistency in presentation format. CONCLUSION With ODS graphics in Base SAS 9.3, many commonly used graphs can be easily generated without the need to program or convert data for graph production using other software applications. As a result, clinical researchers, including PK scientists and phamacometricians, can focus on data exploration, analysis and interpretation, without struggling with programming languages. In practice, this user-friendly graphical tool offers benefits in a variety of areas, e.g. visual access to data as early in the process as possible; easily integrated in automation tools, etc., and provides great opportunities for a streamlined drug development process. REFERENCES Rodriguez, Robert N (2011), An Overview of ODS Statistical Graphics in SAS 9.3, Available at http://support.sas.com/resources/papers/76822_odsgraph2011.pdf Matange, Sanjay (2012), Quick Results with SAS ODS Graphics Designer, Available at http://support.sas.com/resources/papers/proceedings12/153-2012.pdf ACKNOWLEDGMENTS My colleagues in Biologics Clinical Pharmacology. Kenneth Graham and Jessica Lee for editing. 7

CONTACT INFORMATION Your comments and questions are valued and encouraged. Contact the author at: Alice Zong Janssen Pharmaceutical Companies of Johnson & Johnson 1400 McKean road Spring House, PA 19477 (215) 793-7246 azong@its.jnj.com 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. 8