Using the data set NEW _HOSP created in problem 17.1, create a new character variable called AGEGROUP, with the following groupings: Do this with a user-defined format and a PUT function. Problem 17.1...


Using the data set NEW _HOSP created in problem 17.1, create a new character variable called AGEGROUP, with the following groupings:


Do this with a user-defined format and a PUT function.


Problem 17.1


You have a SAS data set called HOSP, that contains a patient ID, gender, date of birth (DOB), date of service (DOS), length of slay (LOS), systolic blood pressure (SBP), diastolic blood pressure (DBP), and heart rate (HR). Run the following program to create this data set:


Create a new data set (NEW_HOSP) that contains all of the variables in HOSP, plus the following:


(a) The base 10 log of LOS (call it LOG_LOS).


(b) The patient's age, as of his/her last birthday, on the date of service (ca.1I it AGE_LAST)


(c) A new variable (X) computed as the square root of the mean of the systolic and diastolic blood pressures, rounded to the nearest tenth.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here