hw2 - STAT 506Homework 2 For most problems you will still...

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

View Full Document Right Arrow Icon
STAT 506—Homework 2 For most problems you will still need to access the data in the PRG1 folder. Use the libname statement we learned to load this each time you work on your assignments. You may now call it ‘orion’ to be consistent with the SAS materials. The lecture notes and homeworks will refer to ‘orion’ as the library. I tried to bold the parts where I expect you to actually show me something in your homework solutions if it is not obvious. Do the following problems. 1. Subsetting Observations and Variables Using the WHERE and KEEP Statements a. Retrieve and submit the starter program p105e01. What is the variable name that contains gender values? ________________________________ What are the two possible gender values? ___________________________________________ b. Add a DATA step before the PROC PRINT step to read the data set orion.customer_dim to create a new data set called Work.youngadult . Show your code for this part. c. Modify the PROC PRINT step to refer to the new data set. Submit the program and confirm that Work.youngadult was created with 77 observations and 11 variables. Show the log for this part.
Background image of page 1

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

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

This note was uploaded on 02/20/2012 for the course STAT 506 taught by Professor Staff during the Fall '08 term at Purdue.

Page1 / 2

hw2 - STAT 506Homework 2 For most problems you will still...

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

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