Chapter 2. Introduction to SAS

Chapter 2. Introduction to SAS - 1 Introduction to SAS 2 ¡...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1 Introduction to SAS 2 ¡ Background of SAS ¡ SAS programming ¡ SAS data sets ¡ Rules for SAS programs 3 Background ¡ Once SAS stood for Statistical Analysis System ¢ System designed for statistical analyses ¡ Over time the system has evolved to include a collection of integrated software products providing data entry/management/analysis, report writing, statistical analysis, forecasting, data mining, and other analysis tool in specific areas etc. 4 ¡ SAS are divided into program modules ¢ BASE data input and management, simple statistical analysis ¢ GRAPH graphics ¢ STAT statistical analysis ¢ ACCESS data access solution ¢ ETS time series, forecasting ¢ INSIGHT interactive data analysis ¢ etc. 5 SAS Windowing Environment ¡ To invoke SAS, either ¢ Click Start Î All Programs Î Statistics Applications Î SAS Î SAS 9.1 (English) or ¢ Click the SAS icon 6 7 SAS Windows Manage output (results) from SAS programs that have been run; view, save and print segments of output Results Display output from SAS programs that have been run Output Display messages about SAS sessions and programs that you submit Log Enter, edit and submit SAS program Program Editor View and manage SAS files; perform most file management tasks Explorer 8 SAS programming ¡ SAS for Windows can be run in 2 modes ¢ SAS programming ¡ Requires the user writing and editing a series of SAS statements, which combines to form a SAS program, to manipulate data and conduct analysis ¡ Program is normally written, opened, edited in the Program Editor Window, and submitted for processing from here. ¢ SAS/Solutions ¡ They are ready-to-use solutions, applications and tools to accomplish specific analysis o data and file management tasks. Examples are SAS/INSIGH, Enterprise Miner, etc.. ¡ Requires the use working through a series of point-and-click menus to select data file, variables, and method of analysis. User does not need to write program. 9 Key concepts ¡ SAS programming is centered around data ¢ In SAS, data are stored in data sets ¢ Data sets are input and/or output of SAS program components ¡ 2 Major types of SAS program components ¢ Data Step ¢ Procedure (PROC) ¡ A SAS program can be made up of ¢ A single Data Step ¢ A single PROC, or ¢ A combination of data steps and/or PROCs ¡ The Data Step has a number of different functions. A major function is to convert raw data into a SAS data set 10 ¡ In addition, Data Step provides programming functionality similar to other programming language ¢ For example, control flow statements such as IF-THEN statements, DO loop statements, etc. can be used to alter the sequence of actions within a Data Step ¢ Data Step can range from the very simple to very complex ¡ SAS PROCs are pre-written programs that work with SAS data sets ¢ Writing SAS PROC is like filling in blanks to select available options within a PROC ¢ Basically, there is no programming functionality within a PROC....
View Full Document

This note was uploaded on 02/09/2012 for the course STAT 1301 taught by Professor Smslee during the Spring '08 term at HKU.

Page1 / 29

Chapter 2. Introduction to SAS - 1 Introduction to SAS 2 ¡...

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

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