Question

In: Statistics and Probability

Using this SAS code for the data. The outcome variable is SBP and should be coded...

Using this SAS code for the data. The outcome variable is SBP and should be coded to appear on the y-axis. Note: you have to write the appropriate program Answer the following questions: Report the correlation coefficient and the p-value. (2pts) Report the parameter estimate for the intercept and heart rate (4pts) Using the regression equation, what is the expected blood pressure for someone with a heart rate of 153? (4pts) data sas_test; input hr sbp; datalines; 35 80 50 82 52 81 58 95 62 105 65 107 67 105 74 120 89 149 101 157 120 202 185 160 ; run;

Solutions

Expert Solution

Solution-A:

with proc corr get the correlation coeffcient and p value

SAS CODE:

data sas_test;
input hr sbp @@;
datalines;
35 80 50 82 52 81 58 95 62 105 65 107 67 105 74 120 89 149 101 157 120 202 185 160
;
run;
proc corr data=sas_test;
var sbp;
with hr;
run

Output:

The CORR Procedure

1 With Variables: hr
1 Variables: sbp
Simple Statistics
Variable N Mean Std Dev Sum Minimum Maximum
hr 12 79.83333 40.55711 958.00000 35.00000 185.00000
sbp 12 120.25000 38.54425 1443 80.00000 202.00000
Pearson Correlation Coefficients, N = 12
Prob > |r| under H0: Rho=0
sbp
hr

0.80023

0.0018

correlation coeffcient,r=0.80023

p value=0.0018

There exists a strong positive relationship between sbp and hr and relationship is statistically significant

Solution-b:

with proc reg find regression equation of sbp on hr

SAS Code:

proc reg data=sas_test;
model sbp=hr;
run;

Output:

The REG Procedure

Model: MODEL1

Dependent Variable: sbp

Number of Observations Read 12
Number of Observations Used 12
Analysis of Variance
Source DF Sum of
Squares
Mean
Square
F Value Pr > F
Model 1 10465 10465 17.81 0.0018
Error 10 5877.18707 587.71871
Corrected Total 11 16342
Root MSE 24.24291 R-Square 0.6404
Dependent Mean 120.25000 Adj R-Sq 0.6044
Coeff Var 20.16042
Parameter Estimates
Variable DF Parameter
Estimate
Standard
Error
t Value Pr > |t|
Intercept 1 59.53557 15.99988 3.72 0.0040
hr 1 0.76051 0.18023 4.22 0.0018

The REG Procedure

Model: MODEL1

Dependent Variable: sbp

From regression output:

model is

sbp=59.53557+0.76051*hr

expected blood pressure for someone with a heart rate of 153 ,substitute hr=153

sbp=59.53557+0.76051*153

= 175.8936

expected blood pressure=175.8936


Related Solutions

Using SAS is preferred but not required. Please provide SAS code and the relevant output if...
Using SAS is preferred but not required. Please provide SAS code and the relevant output if SAS is used. •             Link to referenced FEV.CSV: https://drive.google.com/open?id=1t1CRIbnTE7xL_OE9Bmajb564RXcg8nDo For all hypothesis testing problems: •             state the null and alternative hypotheses, •             calculate the value of the test statistic, •             determine if the results are statistically significant (using rejection region or p-value approaches), •             then state your conclusion in terms of the problem. 1.            FEV (forced expiratory volume) is an index of pulmonary function...
Part A: Here is the start to SAS: DATA CHISQ; INPUT GROUP $ OUTCOME $ COUNT;...
Part A: Here is the start to SAS: DATA CHISQ; INPUT GROUP $ OUTCOME $ COUNT; DATALINES; DRUG ALIVE 90 DRUG DEAD 10 PLACEBO ALIVE 80 PLACEBO DEAD 20 ; Add the necessary code to evaluate the chi-square. What is the continuity-adjusted chi-square a. 0.0477 b. 0.0459 c. 0.0747 d. 0.0482 Part B. For the data in the above question, what is the 95% confidence interval for the odds ratio?​​​​​​​ 0.99-5.09 1.00-1.27 0.97-5.51 1.01-1.25
Bonus Using permutation test SAS code , do the following: Trauma data Metabolic Expenditure Nontrauma patients:...
Bonus Using permutation test SAS code , do the following: Trauma data Metabolic Expenditure Nontrauma patients: 20.1 22.9 18.8 20.9 20.9 22.7 21.4 20 trauma patients: 38.5 25.8 22 23 37.6 30 24.5 Part A Build the permutation distribution (using 5,000 permutations) for the rank sum statistic for the Trauma data used above. Use SAS to fit/overlay a normal curve to the resulting histogram. Compare the mean and standard deviation of this normal curve that was fit to the permutation/randomization...
Here is the start of the SAS code to address this question: DATA READING; INPUT GROUP...
Here is the start of the SAS code to address this question: DATA READING; INPUT GROUP $ WORDS @@; DATALINES; X 700 X 850 X 820 X 640 X 920 Y 480 Y 460 Y 500 Y 570 Y 580 Z 500 Z 550 Z 480 Z 600 Z 610 ; Is there a significant difference between the mean reading score among the groups? Yes No Assuming you answer "yes" in the previous question, between what groups was there a...
Write code in SAS to do each of the following I have posted the data below...
Write code in SAS to do each of the following I have posted the data below from a pace delimited data set consisting of 66 randomly selected cars Upload the data set to SAS and store it as a SAS data set called cars. Make sure the full values are stored for all character variables. Create a comparative bar chart (with appropriate title and labels) displaying the brands of each car by fuel type (so that fuel type is on...
I need the code in SAS and R and outputs please 2. The data below come...
I need the code in SAS and R and outputs please 2. The data below come from a study investigating a method of measuring body composition, and give the body fat percentage (% fat), age and sex for 18 adults aged between 23 and 61 years. Source: Mazess, R.B., Peppler, W.W., and Gibbons, M. (1984) Total body composition by dual-photon (153GD) absorptiometry. American Journal of Clinical Nutrition, 40, 834-839. age % fat sex 23 9.5 male 23 27.9 female 27...
Using the data set as a pre-defined variable in your program, write code that uses the...
Using the data set as a pre-defined variable in your program, write code that uses the dataset to print the first names of people who have BOTH above average math grades AND below average age from the dataset. The solutions for the textbook examples assume you are able to export in a framework like node.js, which is why in the data set I provide, I simply set the array of objects as a variable. Your code will be in the...
We have age and systolic blood pressure (SBP) of 10 randomly chosen people. Using this data,...
We have age and systolic blood pressure (SBP) of 10 randomly chosen people. Using this data, we would like to create a model to predict systolic blood pressure from age. Age SBP 53 137 50 132 54 149 48 132 43 120 43 126 63 161 63 170 62 152 65 164 Write out the model with the beta coefficients. (6pts) Put this data into SPSS, and find the parameter estimates. Write out the prediction equation. Interpret the prediction equation....
We have age and systolic blood pressure (SBP) of 10 randomly chosen people. Using this data,...
We have age and systolic blood pressure (SBP) of 10 randomly chosen people. Using this data, we would like to create a model to predict systolic blood pressure from age. Age SBP 53 137 50 132 54 149 48 132 43 120 43 126 63 161 63 170 62 152 65 164 Give a 95% CI around the predicted slope coefficient and interpret. Using the prediction equation, what is the predicted systolic blood pressure for a 44 year old? 61...
Using the following lines of data, create a temporary SAS data set called ThreeDates. Each line...
Using the following lines of data, create a temporary SAS data set called ThreeDates. Each line of data contains three dates, the first two in the form mm/dd/yyyy descenders and the last in the form ddmmmyyyy. Name the three date variables Date1, Date2, and Date3. Format all three using the MMDDYY10. format. Include in your data set the number of years from Date1 to Date2 (Year12) and the number of years from Date2 to Date3 (Year23). Round these values to...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT