Question: Consider the following SAS data step: data result; input Type C1 C2 ; datalines; 502 731 .00 ; proc print; Display appearance of the output

Consider the following SAS data step:

data result;

input Type C1 C2 ;

datalines;

502 731

.00

;

proc print;

Display appearance of the output from the print if each of the following sets of statements, respectively, appeared between input and datalines; when the program is executed:

a. Index = (2*C1) + C2;

b. if Type <= 6 then do;

Index = (2*C1) + C2;

output;

end;

c. if Type <= 6 then do;

Index = (2*C1) + C2;

end;

else delete;

d. if Type > 6 then delete;

e. if Type > 6 then delete;

Index = (2*C1) + C2;

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 Categorical Data Analysis Questions!