Question
Using the Blood SAS data set, print the first 10 observations to familiarize yourself with the variable names and values. (You can also use PROC
Using the Blood SAS data set, print the first 10 observations to familiarize yourself with the variable names and values. (You can also use PROC CONTENTS to obtain additional information about the dataset). Create one new temporary SAS dataset adding the new variable(s) defined as follows and carry out additional tasks specified below: a. Add a character variable named CholGroup with value of "LOW" for Chol less than 51, value of "NORMAL" for Chol between 51 and 199 inclusive (e.g. including values of 51 and 199) and a value of "HIGH" for Chol greater than 199. Give this variable an informative label and generate frequencies for it. Print observations for female subjects with blood type O. b. Add a numeric variable named WBCnormal with value of 1 for Young (based on AgeGroup variable) subjects with WBC between 5200 and 9200 inclusive and for Old subjects with WBC between 5540 and 8030 exclusive (e.g. not including values of 5540 or 8030). WBCnormal should be coded as 0 for all other records with non-missing WBC values. Label this new variable and generate frequencies for it.
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