(A review on SAS data management) The following is a data set of 12 individuals. And...

90.2K

Verified Solution

Question

Statistics

(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.

Answer & Explanation Solved by verified expert
4.0 Ratings (452 Votes)
code data mydata input x y datalines 90 62 87 41 87 63 73 46 73 53 86 55 100 70 75 47 76 49 87 69 79 41 78 48 run proc print datamydata run data newdata set mydata weightpoundx22 run proc print datanewdata run c proc means datanewdata q1 q3 median run d proc freq datanewdata    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students