Write a program similar to Problem 4.5, except that we want to include all the data for each patient, excluding any patient who has had only one visit. Instead of having PROC MEANS create printed output, use it to create a SAS data set (PAT_MEAN) containing the mean for each patient (use the AUTO NAME output option to name these variables).
Problem 4.5
Using the data set (PATIENTS) described in Section D of this chapter (use the program with sample data), write the necessary SAS statements to create a data set (PROB4_5) in which the first visit for each patient is omitted. Then, using that data set. compute the mean HR, SBP, and DBP for each patient. (Patient 9 with only one visit will be eliminated.)