Automatically Generating a Customized Table for Summarizing the Activities in Clinics

Size: px
Start display at page:

Download "Automatically Generating a Customized Table for Summarizing the Activities in Clinics"

Transcription

1 Automatically Generating a Customized Table for Summarizing the Activities in Clinics Yan Xu, Joyce X. Wu and Han Wu * Keywords: Automatically, Tabulate, INTCK, INTNX Abstract Automatically generating customized tables by using the SAS System is more reliable and efficient, particularly, when the tables need to be submitted periodically in report systems. An example SAS program using SAS/BASE and MACRO modules to create a comprehensive summary table is presented. The SAS program may be run on all SAS platforms. The SAS program features the INTCK and INTNX functions, PROC FREQ, and PROC TABULATE to create monthly reports that summarized weekly activities in the s. A SAS macro program is also described to add flexibility to the calculations shown in the PROC TABULATE table. Also, tips customizing the table and suppressing unnecessary displays were introduced. Introduction In the, many financial expense report tables need to be generated monthly, e.g., calculating costs for disease tests. The monthly report table needs to shows the number of medical tests and the price per test by disease conducted in each lab weekly. Also, the price per test may vary by the type of disease and by the number of the test conducted in a week (See table which was generated from a contrived data). Prior to using an SAS program to automatically generate the monthly report table, the table was typed in Excel. First, the frequencies of tests by diseases and labs in each week were obtained from running multiple PROC FREQ in SAS; secondly, based on the amount of tests in each week, the price per test for each disease was found from a price list; then, the subtotal and total costs were calculated; finally, the results were typed into a table in Excel. These procedures were not only time consuming but also hardly avoiding typos. In this paper, the steps of a SAS program automatically creating a comprehensive summary report table were discussed: (a) the data set from which the report is generated; (b) the calculation of frequencies for each test by each facility in each week using the functions INTCK and INTNX and PROC FREQ; (c) the creation of flexible price calculations using a SAS MACRO program; and (d) the creation and customization of the table in PROC TABULATE step. Data Set The data set DATA2003 (data source) contains the variables test_d (the date when test were conducted), disease (type test for different diseases), and lab (labs that conducted the tests). Creating Weekly Groups In the statement test_d=datepart(test_d); [1], the syntax DATEPART chopped the date part from the variable test_d which was in the datetime format. If the original data set was imported from Excel and Micro SQL, the syntax DATEPART is very useful to covert a date variable into a format that can be recognized by SAS. The statement of week=intck('week',intnx('month',test_d,0),test_d)+1; [2] generated a new variable week that indicated in which week of each month the test was conducted. First, the syntax INTNX('month',test_d,0) set the first day of the month of test_d, e.g., if the test_ d is 23apr2004, INTNX('month',test_d,0) will be the 01apr2004. Thus, SAS will read the original statement INTCK 'WEEK', INTNX('month',test_d,0), test_d)+1; as INTCK ('WEEK',01apr2004, 23apr2004)+1;. Then, the syntax

2 INTCK counted how many weeks from 01apr2004 to 23apr2004 based on the calendar. Finally, the variable week was generated and it indicated 23apr2004 is in the 4 th week. The statement mon=month(test_d); [3] generated a variable named mon that indicated the month in that the test was conducted. Thus, the steps [2] and [3] labeled each observation by new variables mon and week, that indicated in which month and in which week of the month the test was done. For example, if the test_d is 23apr2004, the mon will be 4 (April) and the week will be 4 (the 4 th week in the April). Price Tests In %macro price(&data1, &data2, c1_l, c1_h, p1, c2_l, c2_h, p2, c3_l, c3_h, p3, c4_l, c4_h, p4, c5_l, p5, dis); [4] generated the flexible prices per test based on the different disease and the test amount in each week. First, the frequencies of test amounts for different diseases in each lab and in each week were calculated by proc freq data=wuss12; [5] where mon=&mon; [6] tables lab3*week*disease/norow nocol nopercent out=temp1 noprint; Then, the results were outputted into data tepm1. Changing a unique month number in the statement where mon=&mon; and %let mon=1; [6] can generate the monthly reports in each month. In data &data1; [7], the macro variables c1_l to c5_l and c1_h to c4_h set the lower and higher limits of different test amounts; the p1 to p5 gave the prices for each range of test amount; the dis indicated the type of test. Thus, based on the test amount of each disease by each lab in each week, the price per test was created, when the %MACRO price was called in steps [8]. Creating Tables The PROC TABULTE DATA=temp2 summarized the total tests in each lab and in each week and calculated the subtotal and total costs of each test in each lab and in each week. Meanwhile, the option out=temp3 outputted the results to data tem3. The test numbers, price per test, and total cost were displayed in a table. However, the problem was the subtotals of the price per test were also displayed (The output was not shown). That did not make sense and might confuse end users. Thus, the output of the PROC TABULTE DATA=temp2 was suppressed by the statement ods listing close; [9]. In the DADT final set from DATA temp3, the step [10] recoded the subtotal of week as 7 that was formatted as Monthly total. In the step [11], subtotal of lab was recoded as Z that was formatted as All labs. In the step [12], the subtotal costs of price per test were recoded as 99 that was formatted as N/A. Thus, proc tabulate data=final2 created a table in that subtotal cost of price was displayed as N/A. The table made by one rum of an SAS program is easily readable and understandable for end users. The Program /*Figure 1. Create Weekly Groups with the Health Services Data Set*/ options nodate nonumber center; %let mon=1; [6] data wuss12; set data2003; if 01jan2003.d<=test_d<=31dec2003.d; if lab in (2, 3) then lab3="public Lab "; else lab3="private Lab"; test_d=datepart(test_d); [1] week=intck('week',intnx('month',test_d,0),test_d)+1; [2] mon=month(test_d); [3]

3 /*Figure 2. Macro for Pricing Tests*/ proc freq data=wuss12; [5] where mon=&mon; [6] tables lab3*week*disease/norow nocol nopercent out=temp1 noprint; %macro price(data1, data2, c1_l, c1_h, p1, c2_l, c2_h, p2, c3_l, c3_h, p3, c4_l, c4_h, p4, c5_l, p5, dis); [4] data &data1;; [7] set &data2; if count=0 then price=0; else if &c1_l <=count<=&c1_h and disease="&dis" then price=&p1; else if &c2_l <=count<=&c2_h and disease="&dis" then price=&p2; else if &c3_l <=count<=&c3_h and disease="&dis" then price=&p3; else if &c4_l <=count<=&c4_h and disease="&dis" then price=&p4; else if &c5_l <=count and disease="&dis" then price=&p5; subcost=price*count; %mend; %price(hiv_1,temp1, 1,10,5.50, 11, 20,4.50, 21, 30,3.50, 31, 40,2.50, 41,1.50, HIV); [8] %price(std_1,hiv_1, 1,50,6.50, 51,100,5.50, 101,200,4.50, 201,300,3.50, 301,2.50, STD); %price(temp2,std_1, 1, 5,7.50, 6, 10,6.50, 11, 15,5.50, 16, 20,4.50, 21,3.50, TB ); /*Figure 3. Creating Tables*/ ods listing close; [9] proc tabulate data=temp2 f=9.2 missing out=temp3; class lab3 week disease; var count price subcost; table lab3=""*(week=" " all= Lab Total") all="all labs", disease=' '* (count="count (n)"*sum=""*f=9.0 price="price/ test ($)"*sum=' ' subcost="subtotal ($)"*sum=' ') subcost="totoal Cost ($)"*sum="" / misstext="0" BOX="Lab and Week" RTS=20; format week weekfmt.; ods listing; data final; set temp3; if week=. and disease^=" " then week=7; if _type_=000 then week=7; [10] if lab3=" " and disease^=" " then lab3="z"; if _type_=000 then lab3="z"; [11] if week=7 or lab3="z" then price_sum=99; [12] proc format; value weekfmt 1="Week1" 2="Week2" 3="Week3" 4="Week4" 5="Week5" 6="Week6" 7="Monthly total"; [10] value $labfmt "Z"="All labs "; [11] value prifmt 99="N/A "; [12]

4 data final2; set final; if week^=. and disease^=" "; proc tabulate data=final2 f=9.2 missing ; class lab3 week disease; var count_sum price_sum subcost_sum; table lab3=" "*(week=" "*f=weekfmt.), disease=' '* (count_sum="count (n)"*sum=""*f=9.0 price_sum="price/ test ($)"*sum=""*f=prifmt. subcost_sum="subtotal($)"*sum=' '*f=9.2) subcost_sum="totoal Cost ($)"*sum=""*f=9.2 / misstext="0" BOX="Lab and Week" RTS=20; format lab3 $labfmt.; Title " The Monthly report of Weekly costs for tests of TB, HIV and STD in each Lab"; Title2 ", in &mon/2003"; Results Table The Monthly Report of Weekly Costs for Tests of TB, HIV and STD in Each Lab, January of 2003 ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒ Lab and Week HIV STD TB ƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒ Count Price/ Subtotal- Count Price/ Subtotal- Count Price/ Subtotal- Totoal (n) test ($) ($) (n) test ($) ($) (n) test ($) ($) Cost ($) ƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒ Private Week Lab ƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒ Week Week Week Week Monthly total 124 N/A N/A N/A ƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒ Public Week Lab ƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒ Week Week Week Week Monthly total 121 N/A N/A N/A ƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒ All labs Monthly total 245 N/A N/A N/A Šƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒœ

5 Conclusion Combining the functions of syntaxes INTCK, INTNX, PROC TABULATE, and MACRO skills directly created a monthly report table of costs of tests for different diseases. The tips to customize a table and suppress unnecessary displays in the table were introduced. By using PROC REPORT also can maneuver the displays of outputs to generate a similar report, but we think the table above from PRO TABULATE demonstrated the numbers more clearly. Automatically generating a summary table by a SAS program has advantages of more reliability and efficiency 1-4. The method and SAS programming skills are very useful to dispense data to clinics and to report data to the state and CDC for the County s and they should be used extensively in report systems. References : 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. 1. Han Wu, et al (2003). Automatically combining the data from a variety of DBMSs with ODBC and PROC SQL. Proceedings of 28 th Annual International Conference of SAS User Group International (SUGI). Seattle, WA, USA. 2. Han Wu, et al (2002). Using Automated Reports to Dynamically Monitor TB Control Performance. Proceedings of the National TB Controllers Workshops Association Alexandria, VJ, USA. 3. Han Wu (2002). Automatically Creating Pre-designed Report Tables to Monitor Tuberculosis Control Projects by a SAS Program. Proceedings of the 7 th Annual Conference of International Union against TB and Lung Disease Vancouver, BC, Canada. 4. Han Wu & Ying Chen (2001). Automatically Creating a Summary Table from Multiple Outcomes by a SAS Program. Proceedings of the Ninth Conference of Western User of SAS Software 2001, San Francesco, CA, USA. Contact information Yan Xu, MS Epidemiology Analyst STD Control Program Tel: (213) yxu@dhs.co.la.ca.us Joyce X. Wu Student professional Worker STD Control Program Tel: (213) jowu@dhs.co.la.ca.us HanWu, MD and MPH Epidemiologist Chief, Epidemiology Services Tuberculosis Control Program Tel: (213) Fax: (213) hwu@dhs.co.la.ca.us *: All Authors are equal contributors.

Essential ODS Techniques for Creating Reports in PDF Patrick Thornton, SRI International, Menlo Park, CA

Essential ODS Techniques for Creating Reports in PDF Patrick Thornton, SRI International, Menlo Park, CA Thornton, S. P. (2006). Essential ODS techniques for creating reports in PDF. Paper presented at the Fourteenth Annual Western Users of the SAS Software Conference, Irvine, CA. Essential ODS Techniques

More information

SAS Online Training: Course contents: Agenda:

SAS Online Training: Course contents: Agenda: SAS Online Training: Course contents: Agenda: (1) Base SAS (6) Clinical SAS Online Training with Real time Projects (2) Advance SAS (7) Financial SAS Training Real time Projects (3) SQL (8) CV preparation

More information

Analysis of the Central District Clinic

Analysis of the Central District Clinic Analysis of the Central District Clinic &6( Project 4 will require the creation of a database system to support the operation of a fictitious health clinic in downtown Seattle by studying how an organization

More information

SAS Macro Dynamics: from Simple Basics to Powerful Invocations Rick Andrews, Office of Research, Development, and Information, Baltimore, MD

SAS Macro Dynamics: from Simple Basics to Powerful Invocations Rick Andrews, Office of Research, Development, and Information, Baltimore, MD ABSTRACT CODERS CORNER SAS Macro Dynamics: from Simple Basics to Powerful Invocations Rick Andrews, Office of Research, Development, and Information, Baltimore, MD The SAS Macro Facility offers a mechanism

More information

SAS Macro Dynamics - From Simple Basics to Powerful Invocations Rick Andrews, Office of the Actuary, CMS, Baltimore, MD

SAS Macro Dynamics - From Simple Basics to Powerful Invocations Rick Andrews, Office of the Actuary, CMS, Baltimore, MD Paper BB-7 SAS Macro Dynamics - From Simple Basics to Powerful Invocations Rick Andrews, Office of the Actuary, CMS, Baltimore, MD ABSTRACT The SAS Macro Facility offers a mechanism for expanding and customizing

More information

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

CC13 An Automatic Process to Compare Files. Simon Lin, Merck & Co., Inc., Rahway, NJ Huei-Ling Chen, Merck & Co., Inc., Rahway, NJ CC13 An Automatic Process to Compare Files Simon Lin, Merck & Co., Inc., Rahway, NJ Huei-Ling Chen, Merck & Co., Inc., Rahway, NJ ABSTRACT Comparing different versions of output files is often performed

More information

PROC MEANS for Disaggregating Statistics in SAS : One Input Data Set and One Output Data Set with Everything You Need

PROC MEANS for Disaggregating Statistics in SAS : One Input Data Set and One Output Data Set with Everything You Need ABSTRACT Paper PO 133 PROC MEANS for Disaggregating Statistics in SAS : One Input Data Set and One Output Data Set with Everything You Need Imelda C. Go, South Carolina Department of Education, Columbia,

More information

Macro to compute best transform variable for the model

Macro to compute best transform variable for the model Paper 3103-2015 Macro to compute best transform variable for the model Nancy Hu, Discover Financial Service ABSTRACT This study is intended to assist Analysts to generate the best of variables using simple

More information

The 'SKIP' Statement

The 'SKIP' Statement The 'SKIP' Statement Paul Grant, Private Healthcare Systems, Inc. The Problem Sooner or later every SAS programmer faces the irritating problem of running only a portion of an existing SAS program. If

More information

Using PROC REPORT to Cross-Tabulate Multiple Response Items Patrick Thornton, SRI International, Menlo Park, CA

Using PROC REPORT to Cross-Tabulate Multiple Response Items Patrick Thornton, SRI International, Menlo Park, CA Using PROC REPORT to Cross-Tabulate Multiple Response Items Patrick Thornton, SRI International, Menlo Park, CA ABSTRACT This paper describes for an intermediate SAS user the use of PROC REPORT to create

More information

Paper DB2 table. For a simple read of a table, SQL and DATA step operate with similar efficiency.

Paper DB2 table. For a simple read of a table, SQL and DATA step operate with similar efficiency. Paper 76-28 Comparative Efficiency of SQL and Base Code When Reading from Database Tables and Existing Data Sets Steven Feder, Federal Reserve Board, Washington, D.C. ABSTRACT In this paper we compare

More information

Cleaning Duplicate Observations on a Chessboard of Missing Values Mayrita Vitvitska, ClinOps, LLC, San Francisco, CA

Cleaning Duplicate Observations on a Chessboard of Missing Values Mayrita Vitvitska, ClinOps, LLC, San Francisco, CA Cleaning Duplicate Observations on a Chessboard of Missing Values Mayrita Vitvitska, ClinOps, LLC, San Francisco, CA ABSTRACT Removing duplicate observations from a data set is not as easy as it might

More information

A Format to Make the _TYPE_ Field of PROC MEANS Easier to Interpret Matt Pettis, Thomson West, Eagan, MN

A Format to Make the _TYPE_ Field of PROC MEANS Easier to Interpret Matt Pettis, Thomson West, Eagan, MN Paper 045-29 A Format to Make the _TYPE_ Field of PROC MEANS Easier to Interpret Matt Pettis, Thomson West, Eagan, MN ABSTRACT: PROC MEANS analyzes datasets according to the variables listed in its Class

More information

A Way to Work with Invoice Files in SAS

A Way to Work with Invoice Files in SAS A Way to Work with Invoice Files in SAS Anjan Matlapudi and J. Daniel Knapp Pharmacy Informatics, PerformRx, The Next Generation PBM, 200 Stevens Drive, Philadelphia, PA 19113 ABSTRACT This paper illustrates

More information

Getting Up to Speed with PROC REPORT Kimberly LeBouton, K.J.L. Computing, Rossmoor, CA

Getting Up to Speed with PROC REPORT Kimberly LeBouton, K.J.L. Computing, Rossmoor, CA SESUG 2012 Paper HW-01 Getting Up to Speed with PROC REPORT Kimberly LeBouton, K.J.L. Computing, Rossmoor, CA ABSTRACT Learning the basics of PROC REPORT can help the new SAS user avoid hours of headaches.

More information

You deserve ARRAYs; How to be more efficient using SAS!

You deserve ARRAYs; How to be more efficient using SAS! ABSTRACT Paper 3259-2015 You deserve ARRAYs; How to be more efficient using SAS! Kate Burnett-Isaacs, Statistics Canada Everyone likes getting a raise, and using arrays in SAS can help you do just that!

More information

Utilizing SAS for Cross- Report Verification in a Clinical Trials Setting

Utilizing SAS for Cross- Report Verification in a Clinical Trials Setting Utilizing SAS for Cross- Report Verification in a Clinical Trials Setting Daniel Szydlo, SCHARP/Fred Hutch, Seattle, WA Iraj Mohebalian, SCHARP/Fred Hutch, Seattle, WA Marla Husnik, SCHARP/Fred Hutch,

More information

A Quick and Gentle Introduction to PROC SQL

A Quick and Gentle Introduction to PROC SQL ABSTRACT Paper B2B 9 A Quick and Gentle Introduction to PROC SQL Shane Rosanbalm, Rho, Inc. Sam Gillett, Rho, Inc. If you are afraid of SQL, it is most likely because you haven t been properly introduced.

More information

Using SAS Macros to Extract P-values from PROC FREQ

Using SAS Macros to Extract P-values from PROC FREQ SESUG 2016 ABSTRACT Paper CC-232 Using SAS Macros to Extract P-values from PROC FREQ Rachel Straney, University of Central Florida This paper shows how to leverage the SAS Macro Facility with PROC FREQ

More information

SAS Survey Report Macro for Creating User-Friendly Descriptive Summaries

SAS Survey Report Macro for Creating User-Friendly Descriptive Summaries SESUG Paper BB-119-2017 SAS Survey Report Macro for Creating User-Friendly Descriptive Summaries Tammiee Dickenson, University of South Carolina; Jessalyn Smith, Data Recognition Corporation; Grant Morgan,

More information

ABSTRACT INTRODUCTION WORK FLOW AND PROGRAM SETUP

ABSTRACT INTRODUCTION WORK FLOW AND PROGRAM SETUP A SAS Macro Tool for Selecting Differentially Expressed Genes from Microarray Data Huanying Qin, Laia Alsina, Hui Xu, Elisa L. Priest Baylor Health Care System, Dallas, TX ABSTRACT DNA Microarrays measure

More information

Data Quality Review for Missing Values and Outliers

Data Quality Review for Missing Values and Outliers Paper number: PH03 Data Quality Review for Missing Values and Outliers Ying Guo, i3, Indianapolis, IN Bradford J. Danner, i3, Lincoln, NE ABSTRACT Before performing any analysis on a dataset, it is often

More information

Table of Contents. The RETAIN Statement. The LAG and DIF Functions. FIRST. and LAST. Temporary Variables. List of Programs.

Table of Contents. The RETAIN Statement. The LAG and DIF Functions. FIRST. and LAST. Temporary Variables. List of Programs. Table of Contents List of Programs Preface Acknowledgments ix xvii xix The RETAIN Statement Introduction 1 Demonstrating a DATA Step with and without a RETAIN Statement 1 Generating Sequential SUBJECT

More information

Transforming SAS code into a SAS Macro using PERL Sumner H. Williams, CareOregon, Portland, OR, USA

Transforming SAS code into a SAS Macro using PERL Sumner H. Williams, CareOregon, Portland, OR, USA ABSTRACT Transforming SAS code into a SAS Macro using PERL Sumner H. Williams, CareOregon, Portland, OR, USA SAS code is strengthened by transforming the code into a macro. This paper is intended to demonstrate

More information

It s Proc Tabulate Jim, but not as we know it!

It s Proc Tabulate Jim, but not as we know it! Paper SS02 It s Proc Tabulate Jim, but not as we know it! Robert Walls, PPD, Bellshill, UK ABSTRACT PROC TABULATE has received a very bad press in the last few years. Most SAS Users have come to look on

More information

Tweaking your tables: Suppressing superfluous subtotals in PROC TABULATE

Tweaking your tables: Suppressing superfluous subtotals in PROC TABULATE ABSTRACT Tweaking your tables: Suppressing superfluous subtotals in PROC TABULATE Steve Cavill, NSW Bureau of Crime Statistics and Research, Sydney, Australia PROC TABULATE is a great tool for generating

More information

Speed Dating: Looping Through a Table Using Dates

Speed Dating: Looping Through a Table Using Dates Paper 1645-2014 Speed Dating: Looping Through a Table Using Dates Scott Fawver, Arch Mortgage Insurance Company, Walnut Creek, CA ABSTRACT Have you ever needed to use dates as values to loop through a

More information

Topics of Discussion

Topics of Discussion Understanding the PUR the good, the bad, and the ugly Larry Wilhoit and Minghua Zhang Department of Pesticide Regulation Sacramento, CA 95814 Topics of Discussion How to get the PUR data The data and issues

More information

PharmaSUG Paper PO12

PharmaSUG Paper PO12 PharmaSUG 2015 - Paper PO12 ABSTRACT Utilizing SAS for Cross-Report Verification in a Clinical Trials Setting Daniel Szydlo, Fred Hutchinson Cancer Research Center, Seattle, WA Iraj Mohebalian, Fred Hutchinson

More information

How to Keep Multiple Formats in One Variable after Transpose Mindy Wang

How to Keep Multiple Formats in One Variable after Transpose Mindy Wang How to Keep Multiple Formats in One Variable after Transpose Mindy Wang Abstract In clinical trials and many other research fields, proc transpose are used very often. When many variables with their individual

More information

Efficiently Join a SAS Data Set with External Database Tables

Efficiently Join a SAS Data Set with External Database Tables ABSTRACT Paper 2466-2018 Efficiently Join a SAS Data Set with External Database Tables Dadong Li, Michael Cantor, New York University Medical Center Joining a SAS data set with an external database is

More information

Arthur L. Carpenter California Occidental Consultants

Arthur L. Carpenter California Occidental Consultants Paper 255-30 Looking for a Date? A Tutorial on Using SAS Dates and Times Arthur L. Carpenter California Occidental Consultants ABSTRACT What are SAS date and time values? How are they used and why do we

More information

Chapters 18, 19, 20 Solutions. Page 1 of 14. Demographics from COLLEGE Data Set

Chapters 18, 19, 20 Solutions. Page 1 of 14. Demographics from COLLEGE Data Set 18.2 proc tabulate data=learn.college format=7.; class schoolsize gender scholarship; table schoolsize ALL, gender scholarship ALL; n = ' '; Demographics from COLLEGE Data Set ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ

More information

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

A Breeze through SAS options to Enter a Zero-filled row Kajal Tahiliani, ICON Clinical Research, Warrington, PA ABSTRACT: A Breeze through SAS options to Enter a Zero-filled row Kajal Tahiliani, ICON Clinical Research, Warrington, PA Programmers often need to summarize data into tables as per template. But study

More information

Base and Advance SAS

Base and Advance SAS Base and Advance SAS BASE SAS INTRODUCTION An Overview of the SAS System SAS Tasks Output produced by the SAS System SAS Tools (SAS Program - Data step and Proc step) A sample SAS program Exploring SAS

More information

STATION

STATION ------------------------------STATION 1------------------------------ 1. Which of the following statements displays all user-defined macro variables in the SAS log? a) %put user=; b) %put user; c) %put

More information

THE IMPACT OF DATA VISUALIZATION IN A STUDY OF CHRONIC DISEASE

THE IMPACT OF DATA VISUALIZATION IN A STUDY OF CHRONIC DISEASE THE IMPACT OF DATA VISUALIZATION IN A STUDY OF CHRONIC DISEASE South Central SAS Users Group SAS Educational Forum 2007 Austin, TX Gabe Cano, Altarum Institute Brad Smith, Altarum Institute Paul Cuddihy,

More information

A Practical and Efficient Approach in Generating AE (Adverse Events) Tables within a Clinical Study Environment

A Practical and Efficient Approach in Generating AE (Adverse Events) Tables within a Clinical Study Environment A Practical and Efficient Approach in Generating AE (Adverse Events) Tables within a Clinical Study Environment Abstract Jiannan Hu Vertex Pharmaceuticals, Inc. When a clinical trial is at the stage of

More information

Using Proc Freq for Manageable Data Summarization

Using Proc Freq for Manageable Data Summarization 1 CC27 Using Proc Freq for Manageable Data Summarization Curtis Wolf, DataCeutics, Inc. A SIMPLE BUT POWERFUL PROC The Frequency procedure can be very useful for getting a general sense of the contents

More information

Paper An Automated Reporting Macro to Create Cell Index An Enhanced Revisit. Shi-Tao Yeh, GlaxoSmithKline, King of Prussia, PA

Paper An Automated Reporting Macro to Create Cell Index An Enhanced Revisit. Shi-Tao Yeh, GlaxoSmithKline, King of Prussia, PA ABSTRACT Paper 236-28 An Automated Reporting Macro to Create Cell Index An Enhanced Revisit When generating tables from SAS PROC TABULATE or PROC REPORT to summarize data, sometimes it is necessary to

More information

Reducing Credit Union Member Attrition with Predictive Analytics

Reducing Credit Union Member Attrition with Predictive Analytics Reducing Credit Union Member Attrition with Predictive Analytics Nate Derby Stakana Analytics Seattle, WA PhilaSUG 10/29/15 Nate Derby Reducing Credit Union Attrition 1 / 28 Outline 1 2 Duplicating the

More information

Submitting SAS Code On The Side

Submitting SAS Code On The Side ABSTRACT PharmaSUG 2013 - Paper AD24-SAS Submitting SAS Code On The Side Rick Langston, SAS Institute Inc., Cary NC This paper explains the new DOSUBL function and how it can submit SAS code to run "on

More information

Working the System: Our Best SAS Options Patrick Thornton, SRI International, Menlo Park, CA Iuliana Barbalau, Adecco, Pleasanton, CA

Working the System: Our Best SAS Options Patrick Thornton, SRI International, Menlo Park, CA Iuliana Barbalau, Adecco, Pleasanton, CA ABSTRACT Working the System: Our Best SAS Options Patrick Thornton, SRI International, Menlo Park, CA Iuliana Barbalau, Adecco, Pleasanton, CA This paper provides an overview of SAS system options, and

More information

Report Writing, SAS/GRAPH Creation, and Output Verification using SAS/ASSIST Matthew J. Becker, ST TPROBE, inc., Ann Arbor, MI

Report Writing, SAS/GRAPH Creation, and Output Verification using SAS/ASSIST Matthew J. Becker, ST TPROBE, inc., Ann Arbor, MI Report Writing, SAS/GRAPH Creation, and Output Verification using SAS/ASSIST Matthew J. Becker, ST TPROBE, inc., Ann Arbor, MI Abstract Since the release of SAS/ASSIST, SAS has given users more flexibility

More information

Tips & Tricks. With lots of help from other SUG and SUGI presenters. SAS HUG Meeting, November 18, 2010

Tips & Tricks. With lots of help from other SUG and SUGI presenters. SAS HUG Meeting, November 18, 2010 Tips & Tricks With lots of help from other SUG and SUGI presenters 1 SAS HUG Meeting, November 18, 2010 2 3 Sorting Threads Multi-threading available if your computer has more than one processor (CPU)

More information

The Demystification of a Great Deal of Files

The Demystification of a Great Deal of Files SESUG 2016 ABSTRACT Paper -AD239 The Demystification of a Great Deal of Files Chao-Ying Hsieh, Southern Company Services, Inc. Atlanta, GA Our input data are sometimes stored in external flat files rather

More information

Operators Agree LabLite PC = Data Security

Operators Agree LabLite PC = Data Security 888-954-5483 lablite.com info@lablite.com Operators Agree LabLite PC = Data Security Enter Results by Hour, Day, or Week No More Compliance Reporting Problems E-Mail & Fax & Printed Output Instant Trend

More information

Why Jan 1, 1960? See:

Why Jan 1, 1960? See: 1 Why Jan 1, 1960? See: http://support.sas.com/community/newsletters/news/insider/dates.html Tony Barr was looking for a timestamp that would pre-date most electronic records that were available in the

More information

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

Statistics and Data Analysis. Common Pitfalls in SAS Statistical Analysis Macros in a Mass Production Environment Common Pitfalls in SAS Statistical Analysis Macros in a Mass Production Environment Huei-Ling Chen, Merck & Co., Inc., Rahway, NJ Aiming Yang, Merck & Co., Inc., Rahway, NJ ABSTRACT Four pitfalls are commonly

More information

Make it a Date! Setting up a Master Date View in SAS

Make it a Date! Setting up a Master Date View in SAS SCSUG Paper 19-2017 Make it a Date! Setting up a Master Date View in SAS Crystal Carel, MPH¹ ² ¹STEEEP Analytics, Baylor Scott & White Health, Dallas, TX ²Northern Illinois University, College of Health

More information

Data Presentation ABSTRACT

Data Presentation ABSTRACT ODS HTML Meets Real World Requirements Lisa Eckler, Lisa Eckler Consulting Inc., Toronto, ON Robert W. Simmonds, TD Bank Financial Group, Toronto, ON ABSTRACT This paper describes a customized information

More information

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

Customized Flowcharts Using SAS Annotation Abhinav Srivastva, PaxVax Inc., Redwood City, CA ABSTRACT Customized Flowcharts Using SAS Annotation Abhinav Srivastva, PaxVax Inc., Redwood City, CA Data visualization is becoming a trend in all sectors where critical business decisions or assessments

More information

START CONVERTING FROM TEXT DATE/TIME VALUES

START CONVERTING FROM TEXT DATE/TIME VALUES A Macro Mapping Date and Time Variable to CDISC Date and Time Variable Song Liu, Biogen Idec, San Diego, California Brett Sellars, Biogen Idec, San Diego, California ABSTRACT The Clinical Data Interchange

More information

Strengthening Surveillance: The TB Surveillance Checklist of Standards and Benchmarks Rationale and Development

Strengthening Surveillance: The TB Surveillance Checklist of Standards and Benchmarks Rationale and Development Strengthening Surveillance: The TB Surveillance Checklist of Standards and Benchmarks Rationale and Development Emily Bloss, PhD Division of Tuberculosis Elimination Centers for Disease Control and Prevention

More information

GUIDE TO USING THE 2014 AND 2015 CURRENT POPULATION SURVEY PUBLIC USE FILES

GUIDE TO USING THE 2014 AND 2015 CURRENT POPULATION SURVEY PUBLIC USE FILES GUIDE TO USING THE 2014 AND 2015 CURRENT POPULATION SURVEY PUBLIC USE FILES INTRODUCTION Tabulating estimates of health insurance coverage, income, and poverty from the redesigned survey TECHNICAL BRIEF

More information

Using Templates Created by the SAS/STAT Procedures

Using Templates Created by the SAS/STAT Procedures Paper 081-29 Using Templates Created by the SAS/STAT Procedures Yanhong Huang, Ph.D. UMDNJ, Newark, NJ Jianming He, Solucient, LLC., Berkeley Heights, NJ ABSTRACT SAS procedures provide a large quantity

More information

A Simple Time Series Macro Scott Hanson, SVP Risk Management, Bank of America, Calabasas, CA

A Simple Time Series Macro Scott Hanson, SVP Risk Management, Bank of America, Calabasas, CA A Simple Time Series Macro Scott Hanson, SVP Risk Management, Bank of America, Calabasas, CA ABSTRACT One desirable aim within the financial industry is to understand customer behavior over time. Despite

More information

SAS ENTERPRISE GUIDE USER INTERFACE

SAS ENTERPRISE GUIDE USER INTERFACE Paper 294-2008 What s New in the 4.2 releases of SAS Enterprise Guide and the SAS Add-In for Microsoft Office I-kong Fu, Lina Clover, and Anand Chitale, SAS Institute Inc., Cary, NC ABSTRACT SAS Enterprise

More information

Uncommon Techniques for Common Variables

Uncommon Techniques for Common Variables Paper 11863-2016 Uncommon Techniques for Common Variables Christopher J. Bost, MDRC, New York, NY ABSTRACT If a variable occurs in more than one data set being merged, the last value (from the variable

More information

How to Create Data-Driven Lists

How to Create Data-Driven Lists Paper 9540-2016 How to Create Data-Driven Lists Kate Burnett-Isaacs, Statistics Canada ABSTRACT As SAS programmers we often want our code or program logic to be driven by the data at hand, rather than

More information

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

Creating a Patient Profile using CDISC SDTM Marc Desgrousilliers, Clinovo, Sunnyvale, CA Romain Miralles, Clinovo, Sunnyvale, CA Creating a Patient Profile using CDISC SDTM Marc Desgrousilliers, Clinovo, Sunnyvale, CA Romain Miralles, Clinovo, Sunnyvale, CA ABSTRACT CDISC SDTM data is the standard format requested by the FDA for

More information

Effects of PROC EXPAND Data Interpolation on Time Series Modeling When the Data are Volatile or Complex

Effects of PROC EXPAND Data Interpolation on Time Series Modeling When the Data are Volatile or Complex Effects of PROC EXPAND Data Interpolation on Time Series Modeling When the Data are Volatile or Complex Keiko I. Powers, Ph.D., J. D. Power and Associates, Westlake Village, CA ABSTRACT Discrete time series

More information

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

Automated Checking Of Multiple Files Kathyayini Tappeta, Percept Pharma Services, Bridgewater, NJ PharmaSUG 2015 - Paper QT41 Automated Checking Of Multiple Files Kathyayini Tappeta, Percept Pharma Services, Bridgewater, NJ ABSTRACT Most often clinical trial data analysis has tight deadlines with very

More information

San Joaquin County Emergency Medical Services Agency

San Joaquin County Emergency Medical Services Agency San Joaquin County Emergency Medical Services Agency http://www.sjgov.org/ems Memorandum TO: All Interested Parties FROM: Rick Jones, EMS Analyst DATE: January, 19 Mailing Address PO Box French Camp, CA

More information

Using PROC SQL to Calculate FIRSTOBS David C. Tabano, Kaiser Permanente, Denver, CO

Using PROC SQL to Calculate FIRSTOBS David C. Tabano, Kaiser Permanente, Denver, CO Using PROC SQL to Calculate FIRSTOBS David C. Tabano, Kaiser Permanente, Denver, CO ABSTRACT The power of SAS programming can at times be greatly improved using PROC SQL statements for formatting and manipulating

More information

Arthur L. Carpenter California Occidental Consultants, Oceanside, California

Arthur L. Carpenter California Occidental Consultants, Oceanside, California Paper 028-30 Storing and Using a List of Values in a Macro Variable Arthur L. Carpenter California Occidental Consultants, Oceanside, California ABSTRACT When using the macro language it is not at all

More information

Paper Abstract. Introduction. SAS Version 7/8 Web Tools. Using ODS to Create HTML Formatted Output. Background

Paper Abstract. Introduction. SAS Version 7/8 Web Tools. Using ODS to Create HTML Formatted Output. Background Paper 43-25 The International Studies Project : SAS Version 7/8 Web Tools To The Rescue Lilin She, UNC-CH, Department Of Biostatistics, Chapel Hill, NC Jeffrey M. Abolafia, UNC-CH, Department Of Biostatistics,

More information

WHAT ARE SASHELP VIEWS?

WHAT ARE SASHELP VIEWS? Paper PN13 There and Back Again: Navigating between a SASHELP View and the Real World Anita Rocha, Center for Studies in Demography and Ecology University of Washington, Seattle, WA ABSTRACT A real strength

More information

PharmaSUG 2013 CC26 Automating the Labeling of X- Axis Sanjiv Ramalingam, Vertex Pharmaceuticals, Inc., Cambridge, MA

PharmaSUG 2013 CC26 Automating the Labeling of X- Axis Sanjiv Ramalingam, Vertex Pharmaceuticals, Inc., Cambridge, MA PharmaSUG 2013 CC26 Automating the Labeling of X- Axis Sanjiv Ramalingam, Vertex Pharmaceuticals, Inc., Cambridge, MA ABSTRACT Labeling of the X-axis usually involves a tedious axis statement specifying

More information

Going Beyond Proc Tabulate Jim Edgington, LabOne, Inc., Lenexa, KS Carole Lindblade, LabOne, Inc., Lenexa, KS

Going Beyond Proc Tabulate Jim Edgington, LabOne, Inc., Lenexa, KS Carole Lindblade, LabOne, Inc., Lenexa, KS Going Beyond Proc Tabulate Jim Edgington, LabOne, Inc., Lenexa, KS Carole Lindblade, LabOne, Inc., Lenexa, KS ABSTRACT PROC Tabulate is one of the most powerful and versatile of the SAS reporting tools.

More information

Chaining Logic in One Data Step Libing Shi, Ginny Rego Blue Cross Blue Shield of Massachusetts, Boston, MA

Chaining Logic in One Data Step Libing Shi, Ginny Rego Blue Cross Blue Shield of Massachusetts, Boston, MA Chaining Logic in One Data Step Libing Shi, Ginny Rego Blue Cross Blue Shield of Massachusetts, Boston, MA ABSTRACT Event dates stored in multiple rows pose many challenges that have typically been resolved

More information

Automated Macros to Extract Data from the National (Nationwide) Inpatient Sample (NIS)

Automated Macros to Extract Data from the National (Nationwide) Inpatient Sample (NIS) Paper 3327-2015 Automated Macros to Extract Data from the National (Nationwide) Inpatient Sample (NIS) Ravi Gaddameedi, California State University, Eastbay, CA; Usha Kreaden, Intuitive Surgical, Sunnyvale,

More information

Getting it Done with PROC TABULATE

Getting it Done with PROC TABULATE ABSTRACT Getting it Done with PROC TABULATE Michael J. Williams, ICON Clinical Research, San Francisco, CA The task of displaying statistical summaries of different types of variables in a single table

More information

PHPM 672/677 Lab #2: Variables & Conditionals Due date: Submit by 11:59pm Monday 2/5 with Assignment 2

PHPM 672/677 Lab #2: Variables & Conditionals Due date: Submit by 11:59pm Monday 2/5 with Assignment 2 PHPM 672/677 Lab #2: Variables & Conditionals Due date: Submit by 11:59pm Monday 2/5 with Assignment 2 Overview Most assignments will have a companion lab to help you learn the task and should cover similar

More information

Validation Summary using SYSINFO

Validation Summary using SYSINFO Validation Summary using SYSINFO Srinivas Vanam Mahipal Vanam Shravani Vanam Percept Pharma Services, Bridgewater, NJ ABSTRACT This paper presents a macro that produces a Validation Summary using SYSINFO

More information

A SAS Macro for Producing Benchmarks for Interpreting School Effect Sizes

A SAS Macro for Producing Benchmarks for Interpreting School Effect Sizes A SAS Macro for Producing Benchmarks for Interpreting School Effect Sizes Brian E. Lawton Curriculum Research & Development Group University of Hawaii at Manoa Honolulu, HI December 2012 Copyright 2012

More information

The TIMEPLOT Procedure

The TIMEPLOT Procedure 1247 CHAPTER 38 The TIMEPLOT Procedure Overview 1247 Procedure Syntax 1249 PROC TIMEPLOT Statement 1250 BY Statement 1250 CLASS Statement 1251 ID Statement 1252 PLOT Statement 1252 Results 1257 Data Considerations

More information

Useful Tips When Deploying SAS Code in a Production Environment

Useful Tips When Deploying SAS Code in a Production Environment Paper SAS258-2014 Useful Tips When Deploying SAS Code in a Production Environment ABSTRACT Elena Shtern, SAS Institute Inc., Arlington, VA When deploying SAS code into a production environment, a programmer

More information

SAS Macro. SAS Training Courses. Amadeus Software Ltd

SAS Macro. SAS Training Courses. Amadeus Software Ltd SAS Macro SAS Training Courses By Amadeus Software Ltd AMADEUS SOFTWARE LIMITED SAS TRAINING Amadeus have been delivering SAS Training since 1989 and our aim is to provide you with best quality SAS training

More information

An Efficient Method to Create Titles for Multiple Clinical Reports Using Proc Format within A Do Loop Youying Yu, PharmaNet/i3, West Chester, Ohio

An Efficient Method to Create Titles for Multiple Clinical Reports Using Proc Format within A Do Loop Youying Yu, PharmaNet/i3, West Chester, Ohio PharmaSUG 2012 - Paper CC12 An Efficient Method to Create Titles for Multiple Clinical Reports Using Proc Format within A Do Loop Youying Yu, PharmaNet/i3, West Chester, Ohio ABSTRACT Do you know how to

More information

COLLEGE OF INFORMATION TECHNOLOGY DEPARTMENT OF INFORMATION TECHNOLOGY COURSE SYLLABUS/SPECIFICATION

COLLEGE OF INFORMATION TECHNOLOGY DEPARTMENT OF INFORMATION TECHNOLOGY COURSE SYLLABUS/SPECIFICATION COLLEGE OF INFORMATION TECHNOLOGY DEPARTMENT OF INFORMATION TECHNOLOGY COURSE SYLLABUS/SPECIFICATION CODE & TITLE: ITCS 334 Introduction to PL/SQL (ODBA 2) WEIGHT: (2-2 - 3) PREREQUISITE: ITCS 333 DESCRIPTION:

More information

Data Quality Control for Big Data: Preventing Information Loss With High Performance Binning

Data Quality Control for Big Data: Preventing Information Loss With High Performance Binning Data Quality Control for Big Data: Preventing Information Loss With High Performance Binning ABSTRACT Deanna Naomi Schreiber-Gregory, Henry M Jackson Foundation, Bethesda, MD It is a well-known fact that

More information

Quick Results with the Output Delivery System

Quick Results with the Output Delivery System Paper 58-27 Quick Results with the Output Delivery System Sunil K. Gupta, Gupta Programming, Simi Valley, CA ABSTRACT SAS s new Output Delivery System (ODS) opens a whole new world of options in generating

More information

Want to Do a Better Job? - Select Appropriate Statistical Analysis in Healthcare Research

Want to Do a Better Job? - Select Appropriate Statistical Analysis in Healthcare Research Want to Do a Better Job? - Select Appropriate Statistical Analysis in Healthcare Research Liping Huang, Center for Home Care Policy and Research, Visiting Nurse Service of New York, NY, NY ABSTRACT The

More information

STEP 1 - /*******************************/ /* Manipulate the data files */ /*******************************/ <<SAS DATA statements>>

STEP 1 - /*******************************/ /* Manipulate the data files */ /*******************************/ <<SAS DATA statements>> Generalized Report Programming Techniques Using Data-Driven SAS Code Kathy Hardis Fraeman, A.K. Analytic Programming, L.L.C., Olney, MD Karen G. Malley, Malley Research Programming, Inc., Rockville, MD

More information

%MISSING: A SAS Macro to Report Missing Value Percentages for a Multi-Year Multi-File Information System

%MISSING: A SAS Macro to Report Missing Value Percentages for a Multi-Year Multi-File Information System %MISSING: A SAS Macro to Report Missing Value Percentages for a Multi-Year Multi-File Information System Rushi Patel, Creative Information Technology, Inc., Arlington, VA ABSTRACT It is common to find

More information

Christopher Toppe, Ph.D. Computer Sciences Corporation

Christopher Toppe, Ph.D. Computer Sciences Corporation An Introduction to PROC TABULATE: A Hands-On Workshop Christopher Toppe, Ph.D. Computer Sciences Corporation Abstract The Tabulate procedure is, along with PROC REPORT, one of the most powerful and difficult

More information

Macros to Report Missing Data: An HTML Data Collection Guide Patrick Thornton, University of California San Francisco, SF, California

Macros to Report Missing Data: An HTML Data Collection Guide Patrick Thornton, University of California San Francisco, SF, California Macros to Report Missing Data: An HTML Data Collection Guide Patrick Thornton, University of California San Francisco, SF, California ABSTRACT This paper presents SAS macro programs that calculate missing

More information

ICD_CLASS SAS Software User s Guide. Version FY Prepared for: U.S. Centers for Disease Control and Prevention

ICD_CLASS SAS Software User s Guide. Version FY Prepared for: U.S. Centers for Disease Control and Prevention ICD_CLASS SAS Software User s Guide Version FY 2015 Prepared for: U.S. Centers for Disease Control and Prevention Prepared by: Center for Healthcare Policy and Research University of California, Davis

More information

Beginning Tutorials DATE HANDLING IN THE SAS SYSTEM. Bruce Gilsen, Federal Reserve Board

Beginning Tutorials DATE HANDLING IN THE SAS SYSTEM. Bruce Gilsen, Federal Reserve Board DATE HANDLING IN THE SAS SYSTEM Bruce Gilsen, Federal Reserve Board 1. Introduction A calendar date can be represented in the SAS system as a SAS date value, a special representation of a calendar date

More information

Automating the Production of Formatted Item Frequencies using Survey Metadata

Automating the Production of Formatted Item Frequencies using Survey Metadata Automating the Production of Formatted Item Frequencies using Survey Metadata Tim Tilert, Centers for Disease Control and Prevention (CDC) / National Center for Health Statistics (NCHS) Jane Zhang, CDC

More information

Creating Macro Calls using Proc Freq

Creating Macro Calls using Proc Freq Creating Macro Calls using Proc Freq, Educational Testing Service, Princeton, NJ ABSTRACT Imagine you were asked to get a series of statistics/tables for each country in the world. You have the data, but

More information

STAT:5400 Computing in Statistics. Other software packages. Microsoft Excel spreadsheet very convenient for entering data in flatfile

STAT:5400 Computing in Statistics. Other software packages. Microsoft Excel spreadsheet very convenient for entering data in flatfile STAT:5400 Computing in Statistics Other Software Packages Proc import A bit on SAS macro language Lecture 26 ov 2, 2016 Kate Cowles 374 SH, 335-0727 kate-cowles@uiowaedu Other software packages Microsoft

More information

Know What You Are Missing: How to Catalogue and Manage Missing Pieces of Historical Data

Know What You Are Missing: How to Catalogue and Manage Missing Pieces of Historical Data Know What You Are Missing: How to Catalogue and Manage Missing Pieces of Historical Data Shankar Yaddanapudi, SAS Consultant, Washington DC ABSTRACT In certain applications it is necessary to maintain

More information

Advanced PROC REPORT: Getting Your Tables Connected Using Links

Advanced PROC REPORT: Getting Your Tables Connected Using Links Advanced PROC REPORT: Getting Your Tables Connected Using Links Arthur L. Carpenter California Occidental Consultants ABSTRACT Gone are the days of strictly paper reports. Increasingly we are being asked

More information

A Cross-national Comparison Using Stacked Data

A Cross-national Comparison Using Stacked Data A Cross-national Comparison Using Stacked Data Goal In this exercise, we combine household- and person-level files across countries to run a regression estimating the usual hours of the working-aged civilian

More information

Utilizing the Stored Compiled Macro Facility in a Multi-user Clinical Trial Setting

Utilizing the Stored Compiled Macro Facility in a Multi-user Clinical Trial Setting Paper AD05 Utilizing the Stored Compiled Macro Facility in a Multi-user Clinical Trial Setting Mirjana Stojanovic, Duke University Medical Center, Durham, NC Dorothy Watson, Duke University Medical Center,

More information

A Few Quick and Efficient Ways to Compare Data

A Few Quick and Efficient Ways to Compare Data A Few Quick and Efficient Ways to Compare Data Abraham Pulavarti, ICON Clinical Research, North Wales, PA ABSTRACT In the fast paced environment of a clinical research organization, a SAS programmer has

More information

The Ins and Outs of %IF

The Ins and Outs of %IF Paper 1135-2017 The Ins and Outs of %IF M. Michelle Buchecker, ThotWave Technologies, LLC. ABSTRACT Have you ever had your macro code not work and you couldn't figure out why? Even something as simple

More information

OS/390 SAS/MXG Computer Performance Reports in HTML Format

OS/390 SAS/MXG Computer Performance Reports in HTML Format Paper 153-29 E-Mail OS/390 SAS/MXG Computer Performance Reports in HTML Format ABSTRACT Neal Musitano Jr. Department of Veterans Affairs Information Technology Center Philadelphia, Pennsylvania This paper

More information