hw3 - PH6420: Assignment 3 Due: Oct 24 Overview Write a...

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

View Full Document Right Arrow Icon
PH6420: Assignment 3 Due: Oct 24 Overview Write a separate program for Parts A and B. When creating new variables make sure that you account for possible missing data in the original variable(s). Submit the 2 SAS programs answering all questions. You may include the output if it helps you answer the questions. PART A: 1. Create a SAS dataset that reads in the variables age , sex , income , educ , and hdlbl from tomhs.dat. 2. Within the data step create a new variable called agecat that divides age into 5 categories: 45-49; 50-54; 55-59; 60-64; 65-69. Gives values of 1-5 for the categories. 3. Create a new variable called income40 equal to 0 if income is less than $40,000 and equal to 1 if income is $40,000 or more (see course notes for income and education categories). 4. Create a new variable called collgrad equal to 0 if person did not graduate from college and equal to 1 if the person graduated from college. 5.
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 11/21/2011 for the course PUBH 6420 taught by Professor Greggrandis during the Fall '11 term at University of Florida.

Page1 / 2

hw3 - PH6420: Assignment 3 Due: Oct 24 Overview Write a...

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