Answered step by step
Verified Expert Solution
Link Copied!

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:

  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:
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Exploring The Hospitality Industry

Authors: John R Walker

2nd Edition

013243766X, 9780132437660

More Books

Students also viewed these General Management questions