# Lab02 - Stat 350 Lab 2 Purposes: Creating Box plots and QQ...

This preview shows pages 1–2. Sign up to view the full content.

Due Friday, Jan 28, 2011 Purposes: Creating Box plots and QQ Plots When turning in labs: a) Please include your NAME, CLASS TIME, AND THE LAB # on your submission. b) Label each part with the problem number and put them in logical order. c) ALWAYS include your SAS code for each problem. Part I SAS Learning Code a) Creating New Variables in an existing dataset: (you will need to create a new variable for problems 3-5) You can use the set command in a data statement to copy an existing dataset and create new variables. The variables can be completely new in which you assign values to them or can be based off existing variables in your dataset and you can manipulate them using mathematical functions. SAS Learning code: data ex1_17; infile 'H:\pu.data\Desktop\Stat350\data\ex1_17.txt' ; input lbs; run ; data newSet; set ex1_17; /* This copies the dataset ex1_17 */ group = 1 ; /* This creates a variable called group in the new dataset with all values 1 */ kg = lbs/ 2.2 ; /* This creates a variable called kg in the new dataset by dividing

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 04/23/2011 for the course STAT 350 taught by Professor Staff during the Spring '08 term at Purdue University-West Lafayette.

### Page1 / 3

Lab02 - Stat 350 Lab 2 Purposes: Creating Box plots and QQ...

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

View Full Document
Ask a homework question - tutors are online