ST512 Lab 5

ST512 Lab 5 - ST512 Laboratory Assignment 5 Due Date:...

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

View Full Document Right Arrow Icon
Page 1 of 12 ST512 Laboratory Assignment 5 Due Date: October 19. Assignment Goals: 1. Introduce SAS 2. Introduce ANOVA techniques for comparing samples from more than two populations. The SAS system: SAS is state-of-the-art data analysis software. SAS was originally founded (and is still run by) Jim Goodnight, who began SAS as a member of the NCSU Statistics Department. SAS is now headquartered in Cary. SAS can do many things, most of which have little to do with statistical analysis. In this lab, we will learn to use SAS as a tool for data analysis. Although SAS has a point and click interface for many statistical procedures, in this course we will use SAS in the programming mode. Programming mode allows more precise control of analyses. In programming mode, users type brief programs that consist of a series of commands that ask SAS to do specific things. When you have finished typing your commands SAS you “submit” them to SAS. SAS will return any errors, warnings or information about your program and if possible produce output. In this section we will briefly introduce where this happens in the SAS program. The SAS Windows: When you first open the SAS software you will see several windows. The Editor window: Under Microsoft Windows Programs are typed in the Editor window. Typically this window appears at the bottom of the SAS screen and is labeled “Editor”. The Editor window works much like many word processors and provides some additional features that are helpful for writing SAS programs. The Log window: Typically the upper-most window is the Log window. When you have submitted your program any errors or warnings will appear in the Log window. It is important that you look at the Log each and every time you submit a program. Often a set of commands that were changed in a minor way may do something unexpected. SAS programs: The SAS programs we will create in this course will be very basic. Typically each will consist of two parts a data step and procedures step.
Background image of page 1

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

View Full DocumentRight Arrow Icon
Page 2 of 12 The Data step: Reading data into SAS Half the battle in SAS is reading your data into memory. There are at least 3 separate ways to do this. Method 1: Direct entry For small data sets, it is sometimes easiest simply to enter the data by hand. To do so, begin a data step with a command in the form data name ; In your programs you will use a name that uniquely identifies the data set. Data set names can be any combination of up to 8 letters or numbers or the underscore. Note that the above command ends with a semicolon. In general, all SAS commands end with a semicolon. After the data command, you can enter data directly using “datalines” in the program. The data step will also include an input statement that indicates the names of the variables that allow you to reference them later. The final element in a SAS program is the run statement. The program below is an example of how the data step can be used to enter data manually.
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 note was uploaded on 10/22/2009 for the course ST 512 taught by Professor Dickey during the Spring '07 term at N.C. State.

Page1 / 12

ST512 Lab 5 - ST512 Laboratory Assignment 5 Due Date:...

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