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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started