Question: The data file donation.dat is in the STA3024 folder. The first 10 observations are: 120265 . . . 25 120267 15 15 15 15 120269

  1. The data file donation.dat is in the STA3024 folder. The first 10 observations are:

120265 . . . 25 120267 15 15 15 15 120269 20 20 20 20 120270 20 10 5 . 120271 20 20 20 20 120272 10 10 10 10 120275 15 15 15 15 120660 25 25 25 25 120662 10 . 5 5 120663 . . 5 .

The following variables should be read in using list style input:

Name Type Length
IDNum Character 6
Q1 Numeric 8
Q2 Numeric 8
Q3 Numeric 8
Q4 Numeric 8

Q1, Q2, Q3, and Q4 are the quarterly donations from each person.

Make a SAS data set containing the ID, Q1, Q2, Q3, Q4 and two new variables:

The number of quarters in which a person has a missing donation.

The total of the donations for each person. Use SAS functions to calculate the new variables.

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!