Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

please do this in SAS 9.4 and paste the code with picture 1. (8 points) Read the

ID: 3055926 • Letter: P

Question

please do this in SAS 9.4

and paste the code with picture

1. (8 points) Read the data contained in the income.dat file directly from the data file into a temporary SAS data set called question01. The contents of the data set are: id number (idno), gender (sex), race (race), highest education level (education), income level income). In the same data step in which you read the data into the SAS data set, create a new variable called category that is defined as follows: if income is less than 45000, then category is 1 if income is at least 45000 but less than 80000, then category is2 if income is at least 80000, then category is 3 Print the resulting SAS data set question01

Explanation / Answer

Answer to the question is as follows:

Here' the data step below, with the statements to tag income into category:

data question01 / view=question01;

set income

Length category 3.;

select;

when income LT 45000 category=1;

when income GE 45000 and income LT 80000 category=2;

when income GT 80000 category=3;

end;

run;