Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Run the program here to create a temporary SAS data set called Vitals: data vitals; input ID : #3. Age Pulse SBP DBP; label SBP

Run the program here to create a temporary SAS data set called Vitals:

data vitals;

input ID : #3.

Age Pulse SBP DBP;

label SBP = "Systolic Blood Pressure" DBP = "Diastolic Blood Pressure";

datalines;

001

23

68

120

80

002

55

72

188

96

003

78

82

200

100

004

18

58

110

70

005

43

52

120

82

006

37

74

150

98

007

.

82

140

100

;

Using this data set, create a new data set (NewVitals) with the following new variables:

For subjects less than 50 years of age:

If Pulse is less than 70, set PulseGroup equal to Low; otherwise, set PulseGroup equal to High.

If SBP is less than 130, set SBPGroup equal to Low; otherwise, set SBPGroup equal to High.

For subjects greater than or equal to 50 years of age:

If Pulse is less than 74, set PulseGroup equal to Low; otherwise, set PulseGroup equal to High.

If SBP is less than 140, set SBPGroup equal to Low; otherwise, set SBPGroup equal to High.

You may assume there are no missing values for Pulse or SBP.

Be sure that your pasted your program below. Also paste the relevant text from your log below as an evidence of successful, error-free run.

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

Oracle Autonomous Database In Enterprise Architecture

Authors: Bal Mukund Sharma, Krishnakumar KM, Rashmi Panda

1st Edition

1801072248, 978-1801072243

More Books

Students also viewed these Databases questions

Question

2. How will the team select a leader?

Answered: 1 week ago