Introducing a Colorful Proc Tabulate Ben Cochran, The Bedford Group, Raleigh, NC

Size: px
Start display at page:

Download "Introducing a Colorful Proc Tabulate Ben Cochran, The Bedford Group, Raleigh, NC"

Transcription

1 Paper S Introducing a Colorful Proc Tabulate Ben Cochran, The Bedford Group, Raleigh, NC ABSTRACT Several years ago, one of my clients was in the business of selling reports to hospitals. He used PROC TABULATE to generate part of these reports. He liked the way this procedure 'crunched the numbers', but not the way the final reports looked. He said he would go broke if he had to sell default PROC TABULATE output. So, he wrote his own routine to take TABULATE output and render it through Crystal Reports. This was in during the days of the 6.12 release of SAS before there was something called the Output Delivery System (ODS). Once he got his hands on SAS ODS, he kissed his Crystal Reports good-bye. This paper is all about using PROC TABULATE to generate fantastic looking reports. If you want to generate BIG money reports with PROC TABULATE, this presentation is for you. INTRODUCTION The TABLUATE procedure offers the same statistics as many of the other SAS procedures found in the Base SAS product such as MEANS, SUMMARY and REPORT. In addition to this, the TABULATE procedure provides flexible report writing features such as: flexible table construction multiple dimensions use of labels and formats customization with the Output Delivery System (ODS) statements and options. The general form of the TABULATE step is: PROC TABULATE data = SAS-data-set options ; class variables ; var variables ; table expression; run; These are the basic statements to get started with this procedure. The CLASS statement allows you to specify the categorical (or class) variables. The VAR statement allows you to specify analysis variables. The TABLE statement is the real work horse of this procedure. You can use special characters to construct a fairly elaborate report. There are many other statements that can be used to make this procedure quite powerful such as : BY CLASSLEV FREQ KEYLEVEL WEIGHT Most of these statements will be illustrated in upcoming examples. The TABLE statement is used to construct the report. The table format along with statistics and variables are specified here. Before variables can be used on the TABLE statement, they must be mentioned on the VAR or CLASS statements first. The 'shape' of the report is controlled by TABLE statement operators. Operator Symbol Task Comma, determines the number of dimensions Asterisk * cross, subgroup or 'within' Blank table concatenator Parenthesis ( ) grouping agent Brackets < > specifies denominator definitions Equal = assigns labels or formats 1

2 One of the most important TABLE statement operators to initially focus on is the comma. When there is not a comma present, the report has only one dimension (column). When there is only one comma in the TABLE statement, there are two dimensions (row, column). When there are two commas in the TABLE statement, there are three dimensions (page, row, column). GETTING STARTED This paper presents a several examples of PROC TABULATE ranging from fairly simple to more complex that illustrate the power and flexibility of this procedure. The data that is used is derived from the SASHELP.PM dataset. Only the first 18 rows are shown here. Figure 1.. EXAMPLE 1: Use multiple TABLE statements in one step to generate multiple reports.. PROC TABULATE data = SASHELP.pm; class hub ; var income; table hub * n; table hub * income * sum ; run; Example 1 program. 2

3 Example 1 Output. Because there are NO commas in either TABLE statement, both reports are only one dimensional (column). There is a column for each value of HUB. The first TABLE statement ( Table HUB * N ; ) generates a report that shows a frequency count (N statistic) per HUB. The default format, 12.2, controls the number of decimal places. The second TABLE statement (Table HUB * INCOME * SUM ; ) generates a report that has a column for each HUB and displays the total INCOME for that HUB. EXAMPLE 2: Use multiple CLASS variables to generate a two dimensional report. PROC TABULATE data = SASHELP.pm format=comma12.2; class year type ; var income; where type in ('777', '747'); table year, type * income * sum ; run; Example 2 program. Example 2 output The FORMAT = option on the PROC statement controls the appearance of the whole report. On the TABLE statement, there is one comma, which means the report has 2 dimensions. Starting with the keyword TABLE and moving to the left, everything up to the comma goes in the row dimension. Everything after the comma goes in the column dimension. You can have a third, or page, dimension in your report, but this paper only shows one and two dimensional reports. EXAMPLE 3: Display multiple statistics and use an OUT = option to create a SAS dataset, PROC TABULATE data = SASHELP.pm format=comma12.2 out = pm; class hub ; var income; table hub, income * (n sum mean max mode); run; Example 3 program. 3

4 This step generates two forms of output. The first is the report that is generated from the procedure, and the second is the output dataset created from the OUT= option on the PROC statement. Both types of output are shown in this paper. Example 3 output the WORK.PM dataset Example 3 output the report. EXAMPLE 4: Use an '=' operator to create blank labels for TYPE and SUM. PROC TABULATE data = SASHELP.pm format=comma12.2 ; class hub type; var income; where type in('777', '747'); table hub, type = ' ' * income * sum = ' '; run; Example 4 program. The '=' can be used to display text in the report. On the TABLE statement, it is used twice: once after the TYPE variable, and once after the SUM statistic. Both times, the text is set to a blank. This has the effect of 'blanking' out the words TYPE and SUM. Notice that they are in Example 2 output. TYPE is at the top of the report in line one, and SUM is on line 3 of that report. In this example, those words are not displayed.. 4

5 Example 4 output. EXAMPLE 5: Enhance the program by adding the 'f=' and the rts option. Include the special ALL variable. PROC TABULATE data = SASHELP.pm format=comma12.2 ; class hub type; var income; where type in('777', '747'); table hub all, type * income * sum = ' ' all = 'Total' * income * sum = ' ' f=dollar12.2 / rts = 12; run; Example 5 program 5

6 Example 5 output. Column and row totals were added to this example by using the special variable ALL in both dimensions. ALL creates totals in either the row or the column dimension. In the column dimension, the ='Total' option was used so that ALL is not displayed like it is in the row dimension. Also, the f= option is used in the column dimension to control the format for the total column. Notice the ALL column is the only column where dollar signs appear. Output Delivery System (ODS) components can be used to enhance this report. Although there are many components to ODS, this paper only looks at the STYLE= option. The screen capture below illustrates the type of things that can be done to add color to the last report. This chart serves as the 'gameplan' for the next report. EXAMPLE 6: Use the STYLE = options in the PROC TABULATE step to produce a 'colorful' report. 6

7 Example 6 program. Example 6 output. EXAMPLE 7: Modify the program by using different style attributes. Define a URL to be used as a hyperlink in the BOX= option. Link the PROC TABULATE output to a spreadsheet. Note: The ODS statements directing this output to a PDF are not included in this screen capture. 7

8 Example 7 program. Notice the URL= option within the BOX=option. This creates a link for the label 'New Flights'. When this label is selected in the report, the newflights.xls spreadsheet opens. Example 7 output. The text 'New Flights' has been defined as the link to the spreadsheet. When you click on 'New Flights', the spreadsheet below opens. 8

9 NewFlights.xls. DOING MORE WITH STATISTICS The TABULATE procedure can calculate the following descriptive statistics: COLPCTN COLPCTSUM NMISS MIN MAX VAR CV MODE KURTOSIS ROWPCTN ROWPCTSUM SUMWGT CSS USS RANGE STD SKEWNESS REPPCTN REPPCTSUM STDERR SUM MEAN STDERR N LCLM UCLM PAGEPCTN PAGEPCTSUM PCTN PCTSUM STD STDDEV Starting with example 8, the SASHELP.CLASS dataset is used to generate PROC TABULATE reports. EXAMPLE 8: Illustrate the N, SUM, PCTN and the PCTSUM statistics. Note: the following program was run in Enterprise Guide. The STYLE = option on the TABLE statement gives the TOTAL row a yellow background. Example 8 program 9

10 Example 8 output. PCTN and PCTSUM are calculated as follows: The TOTAL number of observations ( N ) is 19. For each cell in the PCTN column the formula is: PCTN (cell) = N / 19 * 100. The SUM of all the student s HEIGHT is 1, PCTSUM (cell) = SUM / 1184 * 100. EXAMPLE 8B: Illustrate the N, SUM, ROWPCTN and the ROWPCTSUM statistics. A second class variable (SEX) is added to the TABLE statement to give the report a two dimensional appearance. Because the new class variable is in the column dimension, there will be a group of columns for each gender. Example 8B program. Example 8B output. 10

11 When the two RowPctN columns are added together, they total 100. Also, when the two RowPctSum columns are added together, they also total 100. For RowPct statistics, the formula is as follows: RowPctN = N (single cell) / Row Total for N. RowPctSum = SUM (single cell ) / Row total for Sum. EXAMPLE 8C: Use the denominator definitions as an alternative way to create percentages that add to 100 across the row. Prior to the development of RowPctN and RowPctSum, denominator definitions ' < > ' were used to control the calculation of the statistics. Example 8C program. Notice the use of Proc FORMAT to create a Percent 'picture'. It is applied only to the PctSum column. Example 8C output. EXAMPLE 8D: Modify the previous program by adding STYLE = options and the Keyword ALL to the Column dimension. Note that STYLE = can be abbreviated as S=. 11

12 Example 8D program. Also notice that since both RowPctN and RowPctSum add up to 100, only one statistical column is used in the ALL section of the column dimension. Example 8D output. EXAMPLE 9: Write a PROC TABULATE step that illustrates the use of the ColPctN and ColPctSum statistics. Example 9 program. Notice that the keyword ALL has been added to the ROW dimension. The ColPctN and ColPctSum columns add up to 100 percent within each value of the SEX variable. 12

13 Example 9 output. CONCLUSION TABULATE is a very useful procedure in the SAS report writing arsenal. It can deploy many statistics to crunch the numbers, then display them in a number of ways. The addition of ODS as an enhancement with version 8 SAS makes this procedure even more valuable. ACKNOWLEDGMENTS As always, I would like to thank the people in the Technical Support department of SAS Institute for their kind and helpful assistance for this past year. Their knowledge helped make this presentation possible. CONTACT INFORMATION If you have any questions or comments, the author can be reached at: Ben Cochran The Bedford Group 3224 Bedford Avenue Raleigh, NC Work Phone: bencochran@nc.rr.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. 13

Writing Reports with the

Writing Reports with the Writing Reports with the SAS System s TABULATE Procedure or Big Money Proc Tabulate Ben Cochran The Bedford Group bencochran@nc.rr.com Writing Reports with the SAS System s TABULATE Procedure Copyright

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

Setting the Percentage in PROC TABULATE

Setting the Percentage in PROC TABULATE SESUG Paper 193-2017 Setting the Percentage in PROC TABULATE David Franklin, QuintilesIMS, Cambridge, MA ABSTRACT PROC TABULATE is a very powerful procedure which can do statistics and frequency counts

More information

Using PROC TABULATE and ODS Style Options to Make Really Great Tables Wendi L. Wright, CTB / McGraw-Hill, Harrisburg, PA

Using PROC TABULATE and ODS Style Options to Make Really Great Tables Wendi L. Wright, CTB / McGraw-Hill, Harrisburg, PA Using PROC TABULATE and ODS Style Options to Make Really Great Tables Wendi L. Wright, CTB / McGraw-Hill, Harrisburg, PA ABSTRACT We start with an introduction to PROC TABULATE, looking at the basic syntax,

More information

Basic Concepts #6: Introduction to Report Writing

Basic Concepts #6: Introduction to Report Writing Basic Concepts #6: Introduction to Report Writing Using By-line, PROC Report, PROC Means, PROC Freq JC Wang By-Group Processing By-group processing in a procedure step, a BY line identifies each group

More information

Art Carpenter California Occidental Consultants

Art Carpenter California Occidental Consultants PharmaSUG 2010 - Paper HW03 PROC TABULATE: Getting Started and Doing More Art Carpenter California Occidental Consultants ABSTRACT Although PROC TABULATE has been a part of Base SAS since early version

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

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

DSCI 325: Handout 10 Summarizing Numerical and Categorical Data in SAS Spring 2017

DSCI 325: Handout 10 Summarizing Numerical and Categorical Data in SAS Spring 2017 DSCI 325: Handout 10 Summarizing Numerical and Categorical Data in SAS Spring 2017 USING PROC MEANS The routine PROC MEANS can be used to obtain limited summaries for numerical variables (e.g., the mean,

More information

SAS Example A10. Output Delivery System (ODS) Sample Data Set sales.txt. Examples of currently available ODS destinations: Mervyn Marasinghe

SAS Example A10. Output Delivery System (ODS) Sample Data Set sales.txt. Examples of currently available ODS destinations: Mervyn Marasinghe SAS Example A10 data sales infile U:\Documents\...\sales.txt input Region : $8. State $2. +1 Month monyy5. Headcnt Revenue Expenses format Month monyy5. Revenue dollar12.2 proc sort by Region State Month

More information

Print the Proc Report and Have It on My Desktop in the Morning! James T. Kardasis, J.T.K. & Associates, Skokie, IL

Print the Proc Report and Have It on My Desktop in the Morning! James T. Kardasis, J.T.K. & Associates, Skokie, IL Print the Proc Report and Have It on My Desktop in the Morning! James T. Kardasis, J.T.K. & Associates, Skokie, IL ABSTRACT The user will learn how to produce detail and summary reports as well as frequency

More information

Proc Tabulate: Extending This Powerful Tool Beyond Its Limitations

Proc Tabulate: Extending This Powerful Tool Beyond Its Limitations Paper 1730-2014 Proc Tabulate: Extending This Powerful Tool Beyond Its Limitations Justin Jia, Canadian Imperial Bank of Commerce (CIBC), Toronto, Ontario, Canada Amanda Lin, Bell Canada, Toronto, Ontario,

More information

EXST SAS Lab Lab #6: More DATA STEP tasks

EXST SAS Lab Lab #6: More DATA STEP tasks EXST SAS Lab Lab #6: More DATA STEP tasks Objectives 1. Working from an current folder 2. Naming the HTML output data file 3. Dealing with multiple observations on an input line 4. Creating two SAS work

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

44 Tricks with the 4mat Procedure

44 Tricks with the 4mat Procedure 44 Tricks with the 4mat Procedure Ben Cochran, The Bedford Group, Raleigh, NC Abstract: Actually, there probably are not a total of 44 tricks that one can do with the FORMAT procedure. The number was chosen

More information

Anyone Can Learn PROC TABULATE, v2.0

Anyone Can Learn PROC TABULATE, v2.0 Paper 63-25 Anyone Can Learn PROC TABULATE, v2.0 Lauren Haworth Ischemia Research & Education Foundation San Francisco ABSTRACT SAS Software provides hundreds of ways you can analyze your data. You can

More information

The REPORT Procedure CHAPTER 32

The REPORT Procedure CHAPTER 32 859 CHAPTER 32 The REPORT Procedure Overview 861 Types of Reports 861 A Sampling of Reports 861 Concepts 866 Laying Out a Report 866 Usage of Variables in a Report 867 Display Variables 867 Order Variables

More information

I AlB 1 C 1 D ~~~ I I ; -j-----; ;--i--;--j- ;- j--; AlB

I AlB 1 C 1 D ~~~ I I ; -j-----; ;--i--;--j- ;- j--; AlB PROC TABULATE: CONTROLLNG TABLE APPEARANCE August V. Treff Baltimore City Public Schools Office of Research and Evaluation ABSTRACT Proc Tabulate provides one, two, and three dimensional tables. Tables

More information

Using the SAS/MDDB and User Written Methods to Enhance SAS/EIS Objects

Using the SAS/MDDB and User Written Methods to Enhance SAS/EIS Objects Using the SAS/MDDB and User Written Methods to Enhance SAS/EIS Objects Ben Cochran, The Bedford Group, Raleigh, NC Abstract SAS/EIS software provides an extensive, interactive applications development

More information

Tackling Unique Problems Using TWO SET Statements in ONE DATA Step. Ben Cochran, The Bedford Group, Raleigh, NC

Tackling Unique Problems Using TWO SET Statements in ONE DATA Step. Ben Cochran, The Bedford Group, Raleigh, NC MWSUG 2017 - Paper BB114 Tackling Unique Problems Using TWO SET Statements in ONE DATA Step Ben Cochran, The Bedford Group, Raleigh, NC ABSTRACT This paper illustrates solving many problems by creatively

More information

Building and Updating MDDBs

Building and Updating MDDBs 11 CHAPTER 3 Building and Updating MDDBs Analyzing Your Data 11 Using a Spiral Diagram to Order the Classification Variables 12 MDDB Memory Optimization 15 Stored and Derived Statistics 15 Building an

More information

Square Peg, Square Hole Getting Tables to Fit on Slides in the ODS Destination for PowerPoint

Square Peg, Square Hole Getting Tables to Fit on Slides in the ODS Destination for PowerPoint PharmaSUG 2018 - Paper DV-01 Square Peg, Square Hole Getting Tables to Fit on Slides in the ODS Destination for PowerPoint Jane Eslinger, SAS Institute Inc. ABSTRACT An output table is a square. A slide

More information

CMISS the SAS Function You May Have Been MISSING Mira Shapiro, Analytic Designers LLC, Bethesda, MD

CMISS the SAS Function You May Have Been MISSING Mira Shapiro, Analytic Designers LLC, Bethesda, MD ABSTRACT SESUG 2016 - RV-201 CMISS the SAS Function You May Have Been MISSING Mira Shapiro, Analytic Designers LLC, Bethesda, MD Those of us who have been using SAS for more than a few years often rely

More information

Introduction to SAS Procedures SAS Basics III. Susan J. Slaughter, Avocet Solutions

Introduction to SAS Procedures SAS Basics III. Susan J. Slaughter, Avocet Solutions Introduction to SAS Procedures SAS Basics III Susan J. Slaughter, Avocet Solutions DATA versus PROC steps Two basic parts of SAS programs DATA step PROC step Begin with DATA statement Begin with PROC statement

More information

ODS for PRINT, REPORT and TABULATE

ODS for PRINT, REPORT and TABULATE ODS for PRINT, REPORT and TABULATE Lauren Haworth, Genentech, Inc., San Francisco ABSTRACT For most procedures in the SAS system, the only way to change the appearance of the output is to change or modify

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

STAT:5400 Computing in Statistics

STAT:5400 Computing in Statistics STAT:5400 Computing in Statistics Introduction to SAS Lecture 18 Oct 12, 2015 Kate Cowles 374 SH, 335-0727 kate-cowles@uiowaedu SAS SAS is the statistical software package most commonly used in business,

More information

Unit 2 Fine-tuning Spreadsheets, Functions (AutoSum)

Unit 2 Fine-tuning Spreadsheets, Functions (AutoSum) Unit 2 Fine-tuning Spreadsheets, Functions (AutoSum) Manually adjust column width Place the pointer on the line between letters in the Column Headers. The pointer will change to double headed arrow. Hold

More information

Using SAS to Analyze CYP-C Data: Introduction to Procedures. Overview

Using SAS to Analyze CYP-C Data: Introduction to Procedures. Overview Using SAS to Analyze CYP-C Data: Introduction to Procedures CYP-C Research Champion Webinar July 14, 2017 Jason D. Pole, PhD Overview SAS overview revisited Introduction to SAS Procedures PROC FREQ PROC

More information

Producing Summary Tables in SAS Enterprise Guide

Producing Summary Tables in SAS Enterprise Guide Producing Summary Tables in SAS Enterprise Guide Lora D. Delwiche, University of California, Davis, CA Susan J. Slaughter, Avocet Solutions, Davis, CA ABSTRACT This paper shows, step-by-step, how to use

More information

Paper # Jazz it up a Little with Formats. Brian Bee, The Knowledge Warehouse Ltd

Paper # Jazz it up a Little with Formats. Brian Bee, The Knowledge Warehouse Ltd Paper #1495-2014 Jazz it up a Little with Formats Brian Bee, The Knowledge Warehouse Ltd Abstract Formats are an often under-valued tool in the SAS toolbox. They can be used in just about all domains to

More information

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

Multiple Graphical and Tabular Reports on One Page, Multiple Ways to Do It Niraj J Pandya, CT, USA Paper TT11 Multiple Graphical and Tabular Reports on One Page, Multiple Ways to Do It Niraj J Pandya, CT, USA ABSTRACT Creating different kind of reports for the presentation of same data sounds a normal

More information

Introduction to SAS Procedures SAS Basics III. Susan J. Slaughter, Avocet Solutions

Introduction to SAS Procedures SAS Basics III. Susan J. Slaughter, Avocet Solutions Introduction to SAS Procedures SAS Basics III Susan J. Slaughter, Avocet Solutions SAS Essentials Section for people new to SAS Core presentations 1. How SAS Thinks 2. Introduction to DATA Step Programming

More information

Data Should Not be a Four Letter Word Microsoft Excel QUICK TOUR

Data Should Not be a Four Letter Word Microsoft Excel QUICK TOUR Toolbar Tour AutoSum + more functions Chart Wizard Currency, Percent, Comma Style Increase-Decrease Decimal Name Box Chart Wizard QUICK TOUR Name Box AutoSum Numeric Style Chart Wizard Formula Bar Active

More information

Unit 2 Fine-tuning Spreadsheets, Functions (AutoSum)

Unit 2 Fine-tuning Spreadsheets, Functions (AutoSum) Unit 2 Fine-tuning Spreadsheets, Functions (AutoSum) Select a Row or a Column Place your pointer over the Column Header (gray cell at the top of a column that contains a letter identifying the column)

More information

Ditch the Data Memo: Using Macro Variables and Outer Union Corresponding in PROC SQL to Create Data Set Summary Tables Andrea Shane MDRC, Oakland, CA

Ditch the Data Memo: Using Macro Variables and Outer Union Corresponding in PROC SQL to Create Data Set Summary Tables Andrea Shane MDRC, Oakland, CA ABSTRACT Ditch the Data Memo: Using Macro Variables and Outer Union Corresponding in PROC SQL to Create Data Set Summary Tables Andrea Shane MDRC, Oakland, CA Data set documentation is essential to good

More information

Introductory Guide to SAS:

Introductory Guide to SAS: Introductory Guide to SAS: For UVM Statistics Students By Richard Single Contents 1 Introduction and Preliminaries 2 2 Reading in Data: The DATA Step 2 2.1 The DATA Statement............................................

More information

ODS Meets SAS/IntrNet

ODS Meets SAS/IntrNet Paper 9-27 ODS Meets SAS/IntrNet Susan J. Slaughter, Avocet Solutions, Davis, CA Sy Truong, Meta-Xceed, Inc, Fremont, CA Lora D. Delwiche, University of California, Davis Abstract The SAS System gives

More information

Basics: How to Calculate Standard Deviation in Excel

Basics: How to Calculate Standard Deviation in Excel Basics: How to Calculate Standard Deviation in Excel In this guide, we are going to look at the basics of calculating the standard deviation of a data set. The calculations will be done step by step, without

More information

Microsoft Excel 2010 Handout

Microsoft Excel 2010 Handout Microsoft Excel 2010 Handout Excel is an electronic spreadsheet program you can use to enter and organize data, and perform a wide variety of number crunching tasks. Excel helps you organize and track

More information

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

Exporting Variable Labels as Column Headers in Excel using SAS Chaitanya Chowdagam, MaxisIT Inc., Metuchen, NJ Paper 74924-2011 Exporting Variable Labels as Column Headers in Excel using SAS Chaitanya Chowdagam, MaxisIT Inc., Metuchen, NJ ABSTRACT Excel output is the desired format for most of the ad-hoc reports

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

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

Data Manipulation with SQL Mara Werner, HHS/OIG, Chicago, IL

Data Manipulation with SQL Mara Werner, HHS/OIG, Chicago, IL Paper TS05-2011 Data Manipulation with SQL Mara Werner, HHS/OIG, Chicago, IL Abstract SQL was developed to pull together information from several different data tables - use this to your advantage as you

More information

22S:166. Checking Values of Numeric Variables

22S:166. Checking Values of Numeric Variables 22S:1 Computing in Statistics Lecture 24 Nov. 2, 2016 1 Checking Values of Numeric Variables range checks when you know what the range of possible values is for a given quantitative variable internal consistency

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

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

Quality Control of Clinical Data Listings with Proc Compare

Quality Control of Clinical Data Listings with Proc Compare ABSTRACT Quality Control of Clinical Data Listings with Proc Compare Robert Bikwemu, Pharmapace, Inc., San Diego, CA Nicole Wallstedt, Pharmapace, Inc., San Diego, CA Checking clinical data listings with

More information

INTRODUCTION SAS Prepared by A. B. Billings West Virginia University May 1999 (updated August 2006)

INTRODUCTION SAS Prepared by A. B. Billings West Virginia University May 1999 (updated August 2006) INTRODUCTION To SAS Prepared by A. B. Billings West Virginia University May 1999 (updated August 2006) 1 Getting Started with SAS SAS stands for Statistical Analysis System. SAS is a computer software

More information

Importing CSV Data to All Character Variables Arthur L. Carpenter California Occidental Consultants, Anchorage, AK

Importing CSV Data to All Character Variables Arthur L. Carpenter California Occidental Consultants, Anchorage, AK PharmaSUG 2017 QT02 Importing CSV Data to All Character Variables Arthur L. Carpenter California Occidental Consultants, Anchorage, AK ABSTRACT Have you ever needed to import data from a CSV file and found

More information

Stata v 12 Illustration. First Session

Stata v 12 Illustration. First Session Launch Stata PC Users Stata v 12 Illustration Mac Users START > ALL PROGRAMS > Stata; or Double click on the Stata icon on your desktop APPLICATIONS > STATA folder > Stata; or Double click on the Stata

More information

An Easy Route to a Missing Data Report with ODS+PROC FREQ+A Data Step Mike Zdeb, FSL, University at Albany School of Public Health, Rensselaer, NY

An Easy Route to a Missing Data Report with ODS+PROC FREQ+A Data Step Mike Zdeb, FSL, University at Albany School of Public Health, Rensselaer, NY SESUG 2016 Paper BB-170 An Easy Route to a Missing Data Report with ODS+PROC FREQ+A Data Step Mike Zdeb, FSL, University at Albany School of Public Health, Rensselaer, NY ABSTRACT A first step in analyzing

More information

%MAKE_IT_COUNT: An Example Macro for Dynamic Table Programming Britney Gilbert, Juniper Tree Consulting, Porter, Oklahoma

%MAKE_IT_COUNT: An Example Macro for Dynamic Table Programming Britney Gilbert, Juniper Tree Consulting, Porter, Oklahoma Britney Gilbert, Juniper Tree Consulting, Porter, Oklahoma ABSTRACT Today there is more pressure on programmers to deliver summary outputs faster without sacrificing quality. By using just a few programming

More information

Go Ahead and _BREAK_-down: Advanced COMPUTE Block Examples

Go Ahead and _BREAK_-down: Advanced COMPUTE Block Examples Paper SAS431-2017 Go Ahead and _BREAK_-down: Advanced COMPUTE Block Examples Cynthia Zender, SAS Institute Inc. ABSTRACT When you look at examples of the REPORT procedure, you see code that tests _BREAK_

More information

SAS BI Dashboard 3.1. User s Guide Second Edition

SAS BI Dashboard 3.1. User s Guide Second Edition SAS BI Dashboard 3.1 User s Guide Second Edition The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2007. SAS BI Dashboard 3.1: User s Guide, Second Edition. Cary, NC:

More information

A Macro to Manage Table Templates Mark Mihalyo, Community Care Behavioral Health Organization, Pittsburgh, PA

A Macro to Manage Table Templates Mark Mihalyo, Community Care Behavioral Health Organization, Pittsburgh, PA A Macro to Manage Table Templates Mark Mihalyo, Community Care Behavioral Health Organization, Pittsburgh, PA ABSTRACT The scenario: Data must be placed in a table or chart design provided by the company

More information

Week 9: PROC TABULATE (Chapter 19)

Week 9: PROC TABULATE (Chapter 19) Week 9: PROC TABULATE (Chapter 19) We continue exploring primarily describing data to make it easier to present and understand. PROC TABULATE is especially useful for qualitative variables or for breaking

More information

Microsoft Excel 2000 Charts

Microsoft Excel 2000 Charts You see graphs everywhere, in textbooks, in newspapers, magazines, and on television. The ability to create, read, and analyze graphs are essential parts of a student s education. Creating graphs by hand

More information

EXCEL SKILLS. Selecting Cells: Step 1: Click and drag to select the cells you want.

EXCEL SKILLS. Selecting Cells: Step 1: Click and drag to select the cells you want. Selecting Cells: Step 1: Click and drag to select the cells you want. Naming Cells: Viewlet available Step 2: To select different cells that are not next to each other, hold down as you click and

More information

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

Paper ###-YYYY. SAS Enterprise Guide: A Revolutionary Tool! Jennifer First, Systems Seminar Consultants, Madison, WI Paper ###-YYYY SAS Enterprise Guide: A Revolutionary Tool! Jennifer First, Systems Seminar Consultants, Madison, WI ABSTRACT Whether you are a novice or a pro with SAS, Enterprise Guide has something for

More information

Out of Control! A SAS Macro to Recalculate QC Statistics

Out of Control! A SAS Macro to Recalculate QC Statistics Paper 3296-2015 Out of Control! A SAS Macro to Recalculate QC Statistics Jesse Pratt, Colleen Mangeot, Kelly Olano, Cincinnati Children s Hospital Medical Center, Cincinnati, OH, USA ABSTRACT SAS/QC provides

More information

Excel Select a template category in the Office.com Templates section. 5. Click the Download button.

Excel Select a template category in the Office.com Templates section. 5. Click the Download button. Microsoft QUICK Excel 2010 Source Getting Started The Excel Window u v w z Creating a New Blank Workbook 2. Select New in the left pane. 3. Select the Blank workbook template in the Available Templates

More information

Resource Center & Messaging System

Resource Center & Messaging System SOS 2012 User Manual Resource Center & Messaging System Alpha Omega Publications MMVI Alpha Omega Publications, Inc. Switched-On Schoolhouse 2012, Switched-On Schoolhouse. Switched-On, and their logos

More information

PROC FORMAT; VALUE RESTF

PROC FORMAT; VALUE RESTF TABULATE Tutorial Alan Eaton and Ken Howell SAS Institute PROC TABULATE displays descriptive statistics arranged in hierarchical tables. This overview illustrates many features by using them in examples.

More information

Processing SAS Data Sets

Processing SAS Data Sets Statistical Data Analysis 1 Processing SAS Data Sets Namhyoung Kim Dept. of Applied Statistics Gachon University nhkim@gachon.ac.kr 1 Using OUT Dataset OUTPUT Statement OUTPUT

More information

Using Microsoft Excel

Using Microsoft Excel Using Microsoft Excel Formatting a spreadsheet means changing the way it looks to make it neater and more attractive. Formatting changes can include modifying number styles, text size and colours. Many

More information

Lesson 2: Formulas, Functions, and Formatting Microsoft Excel 2016 IN THIS CHAPTER, YOU WILL LEARN HOW TO

Lesson 2: Formulas, Functions, and Formatting Microsoft Excel 2016 IN THIS CHAPTER, YOU WILL LEARN HOW TO Lesson 2: Formulas, Functions, and Formatting Microsoft Excel 2016 IN THIS CHAPTER, YOU WILL LEARN HOW TO Enter Formulas in the worksheet Enter Functions in the worksheet Verify Formulas in the worksheet

More information

An Introduction to Microsoft Excel For Adult Learners. A Project-Based Approach

An Introduction to Microsoft Excel For Adult Learners. A Project-Based Approach An Introduction to Microsoft Excel For Adult Learners A Project-Based Approach Introduction Why should you use Microsoft Excel? Microsoft Excel is one of the most common tools in any business. It may be

More information

KEYWORDS Metadata, macro language, CALL EXECUTE, %NRSTR, %TSLIT

KEYWORDS Metadata, macro language, CALL EXECUTE, %NRSTR, %TSLIT MWSUG 2017 - Paper BB15 Building Intelligent Macros: Driving a Variable Parameter System with Metadata Arthur L. Carpenter, California Occidental Consultants, Anchorage, Alaska ABSTRACT When faced with

More information

Stata: A Brief Introduction Biostatistics

Stata: A Brief Introduction Biostatistics Stata: A Brief Introduction Biostatistics 140.621 2005-2006 1. Statistical Packages There are many statistical packages (Stata, SPSS, SAS, Splus, etc.) Statistical packages can be used for Analysis Data

More information

In this section you will learn some simple data entry, editing, formatting techniques and some simple formulae. Contents

In this section you will learn some simple data entry, editing, formatting techniques and some simple formulae. Contents In this section you will learn some simple data entry, editing, formatting techniques and some simple formulae. Contents Section Topic Sub-topic Pages Section 2 Spreadsheets Layout and Design S2: 2 3 Formulae

More information

SAS is the most widely installed analytical tool on mainframes. I don t know the situation for midrange and PCs. My Focus for SAS Tools Here

SAS is the most widely installed analytical tool on mainframes. I don t know the situation for midrange and PCs. My Focus for SAS Tools Here Explore, Analyze, and Summarize Your Data with SAS Software: Selecting the Best Power Tool from a Rich Portfolio PhD SAS is the most widely installed analytical tool on mainframes. I don t know the situation

More information

Paper HOW-06. Tricia Aanderud, And Data Inc, Raleigh, NC

Paper HOW-06. Tricia Aanderud, And Data Inc, Raleigh, NC Paper HOW-06 Building Your First SAS Stored Process Tricia Aanderud, And Data Inc, Raleigh, NC ABSTRACT Learn how to convert a simple SAS macro into three different stored processes! Using examples from

More information

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

SAS 9 Programming Enhancements Marje Fecht, Prowerk Consulting Ltd Mississauga, Ontario, Canada SAS 9 Programming Enhancements Marje Fecht, Prowerk Consulting Ltd Mississauga, Ontario, Canada ABSTRACT Performance improvements are the well-publicized enhancement to SAS 9, but what else has changed

More information

Guide Users along Information Pathways and Surf through the Data

Guide Users along Information Pathways and Surf through the Data Guide Users along Information Pathways and Surf through the Data Stephen Overton, Overton Technologies, LLC, Raleigh, NC ABSTRACT Business information can be consumed many ways using the SAS Enterprise

More information

EXAMPLE 2: INTRODUCTION TO SAS AND SOME NOTES ON HOUSEKEEPING PART II - MATCHING DATA FROM RESPONDENTS AT 2 WAVES INTO WIDE FORMAT

EXAMPLE 2: INTRODUCTION TO SAS AND SOME NOTES ON HOUSEKEEPING PART II - MATCHING DATA FROM RESPONDENTS AT 2 WAVES INTO WIDE FORMAT EXAMPLE 2: PART I - INTRODUCTION TO SAS AND SOME NOTES ON HOUSEKEEPING PART II - MATCHING DATA FROM RESPONDENTS AT 2 WAVES INTO WIDE FORMAT USING THESE WORKSHEETS For each of the worksheets you have a

More information

Choosing the Right Procedure

Choosing the Right Procedure 3 CHAPTER 1 Choosing the Right Procedure Functional Categories of Base SAS Procedures 3 Report Writing 3 Statistics 3 Utilities 4 Report-Writing Procedures 4 Statistical Procedures 5 Efficiency Issues

More information

Divide and Conquer Writing Parallel SAS Code to Speed Up Your SAS Program

Divide and Conquer Writing Parallel SAS Code to Speed Up Your SAS Program SESUG 2016 Paper PA-265 Divide and Conquer Writing Parallel SAS Code to Speed Up Your SAS Program Doug Haigh, SAS Institute Inc., Cary, NC ABSTRACT Being able to split SAS processing over multiple SAS

More information

Lastly, in case you don t already know this, and don t have Excel on your computers, you can get it for free through IT s website under software.

Lastly, in case you don t already know this, and don t have Excel on your computers, you can get it for free through IT s website under software. Welcome to Basic Excel, presented by STEM Gateway as part of the Essential Academic Skills Enhancement, or EASE, workshop series. Before we begin, I want to make sure we are clear that this is by no means

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

SAS seminar. The little SAS book Chapters 3 & 4. April 15, Åsa Klint. By LD Delwiche and SJ Slaughter. 3.1 Creating and Redefining variables

SAS seminar. The little SAS book Chapters 3 & 4. April 15, Åsa Klint. By LD Delwiche and SJ Slaughter. 3.1 Creating and Redefining variables SAS seminar April 15, 2003 Åsa Klint The little SAS book Chapters 3 & 4 By LD Delwiche and SJ Slaughter Data step - read and modify data - create a new dataset - performs actions on rows Proc step - use

More information

EDUCATION IN PROC TABULATE I EDUCATION IN PROC TABULATE II

EDUCATION IN PROC TABULATE I EDUCATION IN PROC TABULATE II EDUCTON N PROC TBULTE Georg Morsing - SS nstitute EDUCTON N PROC TBULTE 258 Education in PROC TBULTE ntroduction NECESSRY STTEMENTS CONTENTS PROC TBULTE DT= SSdataset l. ntroduction 2. The TBLE statement

More information

Reading a Column into a Row to Count N-levels, Calculate Cardinality Ratio and Create Frequency and Summary Output In One Step

Reading a Column into a Row to Count N-levels, Calculate Cardinality Ratio and Create Frequency and Summary Output In One Step Paper RF-04-2015 Reading a Column into a Row to Count N-levels, Calculate Cardinality Ratio and Create Frequency and Summary Output In One Step Ronald J. Fehd, Stakana Analytics Abstract Description :

More information

Paper S Data Presentation 101: An Analyst s Perspective

Paper S Data Presentation 101: An Analyst s Perspective Paper S1-12-2013 Data Presentation 101: An Analyst s Perspective Deanna Chyn, University of Michigan, Ann Arbor, MI Anca Tilea, University of Michigan, Ann Arbor, MI ABSTRACT You are done with the tedious

More information

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

Techdata Solution. SAS Analytics (Clinical/Finance/Banking) +91-9702066624 Techdata Solution Training - Staffing - Consulting Mumbai & Pune SAS Analytics (Clinical/Finance/Banking) What is SAS SAS (pronounced "sass", originally Statistical Analysis System) is an

More information

Key concepts through Excel Basic videos 01 to 25

Key concepts through Excel Basic videos 01 to 25 Key concepts through Excel Basic videos 01 to 25 1) Row and Colum make up Cell 2) All Cells = Worksheet = Sheet 3) Name of Sheet is in Sheet Tab 4) All Worksheets = Workbook File 5) Default Alignment In

More information

How to Set up a Budget Advanced Excel Part B

How to Set up a Budget Advanced Excel Part B How to Set up a Budget Advanced Excel Part B A budget is probably the most important spreadsheet you can create. A good budget will keep you focused on your ultimate financial goal and help you avoid spending

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

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

Homework 1 Excel Basics

Homework 1 Excel Basics Homework 1 Excel Basics Excel is a software program that is used to organize information, perform calculations, and create visual displays of the information. When you start up Excel, you will see the

More information

INTRODUCTION TO SAS HOW SAS WORKS READING RAW DATA INTO SAS

INTRODUCTION TO SAS HOW SAS WORKS READING RAW DATA INTO SAS TO SAS NEED FOR SAS WHO USES SAS WHAT IS SAS? OVERVIEW OF BASE SAS SOFTWARE DATA MANAGEMENT FACILITY STRUCTURE OF SAS DATASET SAS PROGRAM PROGRAMMING LANGUAGE ELEMENTS OF THE SAS LANGUAGE RULES FOR SAS

More information

Microsoft Office Specialist Excel 2016

Microsoft Office Specialist Excel 2016 77-727 Microsoft Office Specialist Excel 2016 For coverage of all objectives, please utilize Shelly Cashman Series Office 365 and Excel 2016: Comprehensive. Domain Obj Number Objective text Module Page

More information

Beginning Tutorials. A Beginner's Guide to Incorporating SAS Output in Microsoft Office Applications Vincent DelGobbo, SAS Institute Inc.

Beginning Tutorials. A Beginner's Guide to Incorporating SAS Output in Microsoft Office Applications Vincent DelGobbo, SAS Institute Inc. A Beginner's Guide to Incorporating SAS Output in Microsoft Office Applications Vincent DelGobbo, SAS Institute Inc., Cary, NC ABSTRACT This paper provides techniques for incorporating the output from

More information

An Introduction to Stata Part I: Data Management

An Introduction to Stata Part I: Data Management An Introduction to Stata Part I: Data Management Kerry L. Papps 1. Overview These two classes aim to give you the necessary skills to get started using Stata for empirical research. The first class will

More information

Introduction to the workbook and spreadsheet

Introduction to the workbook and spreadsheet Excel Tutorial To make the most of this tutorial I suggest you follow through it while sitting in front of a computer with Microsoft Excel running. This will allow you to try things out as you follow along.

More information

SAS Job Monitor 2.2. About SAS Job Monitor. Overview. SAS Job Monitor for SAS Data Integration Studio

SAS Job Monitor 2.2. About SAS Job Monitor. Overview. SAS Job Monitor for SAS Data Integration Studio SAS Job Monitor 2.2 About SAS Job Monitor Overview SAS Job Monitor is a component of SAS Environment Manager that integrates information from SAS Data Integration Studio, DataFlux Data Management Server,

More information

The Basics of PROC FCMP. Dachao Liu Northwestern Universtiy Chicago

The Basics of PROC FCMP. Dachao Liu Northwestern Universtiy Chicago The Basics of PROC FCMP Dachao Liu Northwestern Universtiy Chicago ABSTRACT SAS Functions can save SAS users time and effort in programming. Each release of SAS has new functions added. Up to the latest

More information

Kaseya 2. User Guide. Version 7.0. English

Kaseya 2. User Guide. Version 7.0. English Kaseya 2 Custom Reports User Guide Version 7.0 English September 3, 2014 Agreement The purchase and use of all Software and Services is subject to the Agreement as defined in Kaseya s Click-Accept EULATOS

More information

Switched-On Schoolhouse 2014 User Guide Resource Center & Messaging System

Switched-On Schoolhouse 2014 User Guide Resource Center & Messaging System Switched-On Schoolhouse 2014 User Guide Resource Center & Messaging System MMVI Alpha Omega Publications, Inc. Switched-On Schoolhouse 2014, Switched-On Schoolhouse. Switched-On, and their logos are registered

More information

Quick Start Guide. Version R94. English

Quick Start Guide. Version R94. English Custom Reports Quick Start Guide Version R94 English December 12, 2016 Copyright Agreement The purchase and use of all Software and Services is subject to the Agreement as defined in Kaseya s Click-Accept

More information