


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



This homework will use the permanent SAS data set ( b510.allgroups_merged ) that was created in homework 3. Before proceeding with this homework, be sure this permanent data set was created properly. If you need the data set, you can download it from my web page. To do this homework assignment, you will have to submit a libname statement pointing to the folder where you saved this data set, to let SAS know where the permanent SAS data set is located. Remember, you only have to submit the libname statement once per SAS session. Your commands will look something like those shown below: libname b510 "d:\510\2007";
1. Create a bivariate scatter plot with PULSE2 as the Y variable and PULSE1 as the X variable and with separate regression lines for those who ran and those who did not run. Note: you will have to exclude the cases which are missing on RAN, using a where statement in your Proc Gplot commands, such as: where ran not=.; Does there appear to be a linear relationship between Pulse1 and Pulse2 for those who ran? For those who did not run? Do you think the slopes of these two regression lines are different or the same? (This is just your opinion, before running the regression models). Include this scatterplot in your write-up. Check out the log and report the two regression line equations written there.
c. What are the results of the F-test for this model? Please report the F- statistic, the numerator and denominator degrees of freedom and the p- value. What null hypothesis for this test? d. What is the estimated intercept for this model? Please interpret the intercept estimate. Is it meaningful in the context of the data? e. What is the effect of RAN? Please interpret this parameter estimate. Is it meaningful in the context of the data? f. What is the estimated slope for PULSE1? Interpret the slope estimate for PULSE1 (remember, it is for the reference group of RAN). Is this slope significant? Please report the t-test, degrees of freedom and p-value for the slope. g. What is the estimated effect of the PULSE1 by RAN interaction? Interpret this effect. Is it significant? Please report the t-test, degrees of freedom and p-value for the interaction. h. Write out the estimated equation for the fitted ANCOVA model. i. Write out the estimated regression equation separately those who ran and for those who did not run based on your model fit. What are the estimated intercept and slope for those who ran? For those who did not run? j. Calculate the predicted value of Pulse2 for a student who ran and whose Pulse1 value is equal to 70. Calculate the predicted value of Pulse2 for a student who did not run and whose Pulse1 value is equal to 70. (Do this by hand, and show your work). Get a plot of the Studentized Residuals vs. the Predicted values. Does this plot show any pattern? Are there any apparent outliers? Get a plot of Cook’s Distance vs. the Observation Number. Are there any observations that are particularly influential? Include the regression model output, the plot of studentized residuals vs. predicted values, and the plot of Cook’s distance vs. observation number in your output.