Question: This question requires you to use BLOOD Dataset under Learn library. You are required to paste the SAS code in the textbox below along with

This question requires you to use BLOOD Dataset under Learn library. You are required to paste the SAS code in the textbox below along with answering any questions asked. Do a SAS program to do the following:

  1. Generate a temporary dataset named "Blood" that uses Learn.BLOOD to get the data
  2. Calculate the median of WBC and Chol columns using Proc Means and write it down somewhere.
  3. Do not bring the following variables from the SASHELP.Blood dataset
    1. Subject
    2. RBC
  4. Filter the data to include only Young AgeGroup with BloodType except 'O'.
  5. Replace all the missing WBC values with the median calculated in Step 2.
  6. Replace all the missing Chol values with the median calculated in Step 2.
  7. Drop AgeGroup column.
  8. Write Proc Print(s) to answer the following questions (You are required to provide the code for Proc Print as an answer along with the answer to the following questions):
    1. How many total females are in the dataset that have Cholesterol more than 250?
    2. How many total males are in the dataset that have WBC between 5000 and 6000 (both values included)?
    3. How many records in total for the females that have cholesterol more than 250 with BloodType-A plus males that have WBC between 5000 and 6000 (both included) with BloodType of B.
  9. Write a Proc SGPLOT to generate an output shown below:
This question requires you to use BLOOD Dataset under Learn library. You

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 General Management Questions!