CH4 - STAT1303A Data Management 4 SAS Procedures for Data...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
STAT1303A Data Management 4. SAS Procedures for Data Summarization 4 SAS Procedures for Data Summarization In Chapter 3, we have illustrated the input of data into SAS by Data Step. Then, the next step is to SAS procedures (PROCs) to summarize our data as the amount of data for analysis is huge typically. As a result, some basic features of SAS procedures are introduced. Afterwards, the SAS procedures for data summarization are used to demonstrate their use in data analysis. 4.1 Introduction to SAS Procedures Mainly, the procedures (PROCs) in BASE SAS module are used for data summarization and give descriptive statistics about the data. Descriptive statistics play a role in many data management tasks which are 1. Data presentation - a few reports, tables, and graphs can give interested party most of the information they want. 2. Data cleaning and validation - errors in data collection and data entry identifying unusual observations, one may spot these errors. 3. Data exploration - exploring the structure and the relationships of variables in the data, as well, as the patterns of unusual observations helps in understand the data. 4. Data manipulations and preparation - summary statistics may be useful in data manipulations and preparation tasks. Subsequently, the data set can be used for further analysis. 4.1.1 SAS PROCs SAS PROCs are pre-written programs. Using a PROC is like ²lling out a form. Then, we can ²ll in the blanks of the PROC and choose from a list of options. Each PROC has its own unique form with its own list of options. All PROCs have required statements and most of them have optional statements. For example, the print procedure requires only PROC PRINT although we can add many optional statements to PROC PRINT. 4.1.2 Basic structure of a SAS PROC All PROCs start with a PROC statement and followed by a number of required ³ optional statements: A new Data Step (statement DATA), a new PROC (statement PROC) and the statement RUN ends the current PROC. A statement PROC starts with the keyword PROC followed by the name of the procedure. Options follow the procedure name. Typically, the options³statements are common to all procedures: HKU STAT1303A (2009-10, Semester 1) 4 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
STAT1303A Data Management 4. SAS Procedures for Data Summarization PROC procedure_name DATA = data-set < options > ; BY by_details; LABEL label_details; WHERE where_details; 4.2 PROC PRINT The main function of this procedure is to print observations in a data set. It can be as simple as PROC PRINT data=contact; RUN; Then, the observations in the data set CONTACT will be printed on the Output window. The general syntax of PROC PRINT takes the form of
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 05/04/2011.

Page1 / 27

CH4 - STAT1303A Data Management 4 SAS Procedures for Data...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online