# SDSU STAT 700 - SAS Lab (4 pages)

Previewing page 1 of 4 page document
View Full Document

## SAS Lab

Previewing page 1 of actual document.

View Full Document
View Full Document

## SAS Lab

73 views

Pages:
4
School:
San Diego State University
Course:
Stat 700 - Data Analysis Methods
##### Data Analysis Methods Documents
• 3 pages

Unformatted text preview:

Lab 4 SAS Lab In today s lab we will be using SAS to redo select homework problems We will not focus on SAS code syntax but rather the output that SAS gives us and it compare it to what we already have calculated in R If you would like to later explore the code I have tried to provide as many comments as possible to indicate what SAS is doing There are many options in how you do analysis in SAS the code we will be using today simply requires that you just run the code For the purpose of keeping the tutorial short we will only look at residual plots and QQ plots as diagnostics The three problems we will revisit are HW 2 Problem 1 GPA data HW 3 Problem 1 chickwts data HW 4 Problem 2 poison data Getting started First please download the following data sets from Dr Bailey s website and save them to your computer Remember where you saved them because we will need the path name of the file to bring the data into SAS http www rohan sdsu edu babailey stat700 gpa dat http www rohan sdsu edu babailey stat700 chickwts dat http www rohan sdsu edu babailey stat700 poison dat Please locate SAS 9 1 on your computer Unlike R SAS outputs to multiple windows The EDITOR window is where you input your code The OUTPUT window shows what you have compiled The LOG window shows the CPU process when you compile as well as any errors on your code The GRAPH window shows high resolution plots For each homework problem that we go over I highly suggest that you use a new EDITOR window Let s begin HW 2 Problem 1 GPA data Purpose Linear Models with AIC Copy the following code into your editor window and change your data file pathname in the infile statement To compile the code either hit the little running man button at the top toolbar or hit F8 on your keyboard STAT 700 HW2 P1 GPA data Linear Models with AIC option formdlim nodate pageno 1 formats output window for nicer viewing title STAT 700 HW2 P1 GPA data data gpa infile G STAT 700 hw2 gpa dat firstobs 2 replace infile with appropriate

View Full Document

Unlocking...