Question: Using the following data create a SAS dataset, called CLINIC. 001MW08013008010 002FW08811007205 003MB05018810002 004FB 10806801 005MW06812208204 006FB101 07404 007FW07810406603 008MW04811207006 009FB07719011009 010FB06616410610 In the data

Using the following data create a SAS dataset, called CLINIC. 001MW08013008010 002FW08811007205 003MB05018810002 004FB 10806801 005MW06812208204 006FB101 07404 007FW07810406603 008MW04811207006 009FB07719011009 010FB06616410610 In the data step include a statement to compute average blood pressure (call it ave_bp) computed as a diastolic blood pressure (DBP) plus 1/3 the difference of the systolic blood pressure (SBP) and DBP. (For those interested in this, since the heart spends more time in diastole (relaxed state) than it does in systole (when it contracts), a weighted average is used to represent the average "blood pressure"-one-third of the SBP and two-thirds of the DBP). Use proc MEANS to compute the number of non-missing values, the mean, the standard deviation, the 95% Cl on the mean, the median value of SBP, DBP and the ave_bp. Here is the syntax PROC MEANS DATA=CLINIC N MEAN STD CLM MEDIAN; var var1 var2 ...; run; The data layout: Starting column 1 Length 3 4 variable ID GENDER RACE HR SBP DBP N proc 5 Description Subject ID Gender Race of subject Heart rate systolic blood pressure diastolic blood pressure Number of procedures 1 1 3 3 type Char Char Char Numeric Numeric Numeric Numeric 6 9 12 15 NW Using the following data create a SAS dataset, called CLINIC. 001MW08013008010 002FW08811007205 003MB05018810002 004FB 10806801 005MW06812208204 006FB101 07404 007FW07810406603 008MW04811207006 009FB07719011009 010FB06616410610 In the data step include a statement to compute average blood pressure (call it ave_bp) computed as a diastolic blood pressure (DBP) plus 1/3 the difference of the systolic blood pressure (SBP) and DBP. (For those interested in this, since the heart spends more time in diastole (relaxed state) than it does in systole (when it contracts), a weighted average is used to represent the average "blood pressure"-one-third of the SBP and two-thirds of the DBP). Use proc MEANS to compute the number of non-missing values, the mean, the standard deviation, the 95% Cl on the mean, the median value of SBP, DBP and the ave_bp. Here is the syntax PROC MEANS DATA=CLINIC N MEAN STD CLM MEDIAN; var var1 var2 ...; run; The data layout: Starting column 1 Length 3 4 variable ID GENDER RACE HR SBP DBP N proc 5 Description Subject ID Gender Race of subject Heart rate systolic blood pressure diastolic blood pressure Number of procedures 1 1 3 3 type Char Char Char Numeric Numeric Numeric Numeric 6 9 12 15 NW
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
