Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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:
- Generate a temporary dataset named "Blood" that uses Learn.BLOOD to get the data
- Calculate the median of WBC and Chol columns using Proc Means and write it down somewhere.
- Do not bring the following variables from the SASHELP.Blood dataset
- Subject
- RBC
- Filter the data to include only Young AgeGroup with BloodType except 'O'.
- Replace all the missing WBC values with the median calculated in Step 2.
- Replace all the missing Chol values with the median calculated in Step 2.
- Drop AgeGroup column.
- 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):
- How many total females are in the dataset that have Cholesterol more than 250?
- How many total males are in the dataset that have WBC between 5000 and 6000 (both values included)?
- 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.
- Write a Proc SGPLOT to generate an output shown below:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started