{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

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

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. Include suitable labels for each variable read in and each new variable.

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.

{[ snackBarMessage ]}

### 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
Ask a homework question - tutors are online