Question: 8. In the SAS program below, add the necessary statements to compute four new variables: A. Weight in kilograms (1kg 2.2 pounds). Name this variable

8. In the SAS program below, add the necessary statements to compute four new variables: A. Weight in kilograms (1kg 2.2 pounds). Name this variable WtKg. WtKg= weight / 2.24 HtCm- Height*2.54e systolic BP and diastolic BP. Call it AveBP, B. Height in centimeters (1 inch - 2.54 cm). Name this variable HtCm, C. Average blood pressure diastolic BP plus one third of the difference between D. A variable equal to 2 times the height squared, plus 1.5 times the height cubed. Call it E. BMI = Weight in Kilograms / (Height in Meters x Height in Meters ) data prob1 8;4 input ID $e Height /* in inches / Weight /* in pounds */e SBP/* systolic BP DBP/* diastolic BP; # insert your code here WtKg= Weight / 2.2 /* Weight in kilograms (1kg = 2.2 pounds) *4" HtCm- Height*2.54/* Height in centimeters (1 inch-2.54 cm)*/; 001 68 150 110 70 002 73 240 150 90 003 62 101 120 80 title "Listing of Problem 8"; proc print data-probl_8; run d 9. Repeat question 8 in R. Use the following code: ID
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
