(A review on SAS data management)
The following is a data set of 12 individuals. And we want torelate the heart rate at rest (Y) to kilograms body weight (X).
90 62
87 41
87 63
73 46
73 53
86 55
100 70
75 47
76 49
87 69
79 41
78 48
Write a program in SAS which read the given data set into SASlibrary.
In your program, create a new data set which is a copy of thefirst, with the addition of a new variable which represents theweight in pounds (1 kilogram 2.2 pounds). Use “proc print” to viewthe data for all three variables.
(c) Create a new variable called weight_group which divides thedata set into four groups based on the estimated quartiles for thevariable weight. The estimated quartiles may be requested using thekeywords q1, median, and q3, in the “proc means”statement.
(d) Use “proc freq” to summarize the frequency of subjects ineach of the four groups.
(e) Obtain the mean and standard deviation for the heart rate atrest for each of the four groups. Comment on the results.
(f) Produce a scatterplot of the heart rate at rest versus bodyweight in kilograms. Describe what you see.
(g)Fit a straight line model for heart rate at rest versus bodyweight in kilograms. Comment on the fit of the line.