Question: Read the data contained in the final.dat file directly from the data file into a permanent SAS data set called final knowing that:columns 1-2 contain

Read the data contained in the final.dat file directly from the data file into a permanent SAS data set called final knowing that:columns 1-2 contain student number (subj)column 3 contains the gender of the student (gender)columns 4-8 contain the name of the teacher (teacher)columns 9-10 contain the age of the teacher (age)columns 11-12 contain the student's pretest score (pretest)columns 13-14 contain the student's posttest score (posttest)Use the variable names given in the parenthesis. When doing so, create a new variable called change that contains the difference in the student's pretest and posttest scores.In addition, create another new variable, improved defined as follows:if change is less than or equal to 0, then improved is 'No'if change is greater than 0, then improved is 'Yes' Use the PRINT procedure to print the final data set so that your output looks (exactly) like this:final1.png Note that you will also have to do the following to get the same output:Create a format for the gender variable.Use label to display the same column headings.

Read the data contained in the final.dat file directly from the data

1MJones356781 2FJones359886 3MJones355292 4MBlack424174 5FBlack424676 6MSmith683880 7MSmith684971 8FSmith683863 9MHayes237172 10FHayes234692 11MHayes237090 12FWong 474964 13MWong 475063

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!