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

Please answer questions 1-3 using SAS 9.4 Following is a sample SAS program usin

ID: 3293906 • Letter: P

Question

Please answer questions 1-3 using SAS 9.4

Following is a sample SAS program using COLUMN input. The dataset is successfully read into SAS without any error.

We will focus on reading the first observation into SAS. Fill in the tables below with correct characters/numbers.

1.What does the input buffer look like during the first iteration of the DATA step

Input buffer

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

2. What does the program data vector look like at the beginning of the first iteration of the DATA step?

Data Program Vector

_N_

_ERROR_

student

exam1

exam2

grade

3.What does the program data vector look like at the end of the first iteration of the DATA step?

Data Program Vector

_N_

_ERROR_

student

exam1

exam2

grade

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

DATA grades; input student 1-9 exam1 10-12 exam2 13-15; grade = (exam! + exam2 )/2; datalines James Daniel 79 100 Isabella 89 94 Mia Mason 90 97 95 89 100 92 RUN PROC print data- grades; RUN:

Explanation / Answer

1)

input buffer look like during the first iteration of the DATA step

Input buffer as follows:

2)

the program data vector look like at the beginning of the first iteration of the DATA step

3) program data vector look like at the end of the first iteration of the DATA step

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 J a m e s 9 0 9 7