Question: The raw data file called Class.dat contains three test scores for each of two students in a class. If you submit the following SAS program,

The raw data file called Class.dat contains three test scores for each of two students in a class.
If you submit the following SAS program, what will be the value of the variable represented by p(i) for the first observation after the second time through the iterative DO group?
----+----1----+----2
222 Jimmy 958575
333 Ulric 908070
DATA score;
INFILE 'c;\MyRawData\Class.dat';
INPUT ID Name $ Test1 Test2 Test3;
ARRAY t(3) Test1- Test3;
ARRAY p(3) Prop1- Prop3;
DO i =1 to 3;
p(i)= t(i)/100;
END;
Total = SUM(Test1- Test3);
RUN;
0.80
0.85
0.70

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 Databases Questions!