STAT 516 HW 3 Please write your answers neatly and clearly! You MUST make sure your answers to these questions are written in the same order as the questions are listed in the assignment. If this instruction is not followed, your homework WILL NOT be graded. HAND CALCULATIONS: 1. On page 400 (problem 1), data are given for 8 observations. On the top of page 401, the SAS output for the multiple regression of Y on X1 and X2 is given. Also given are the actual Y values, the predicted Y values, and the residuals for the 8 observations. Do the following by hand, SHOWING WORK. (You may use a hand calculator to help with the calculations.) (a) Use the estimated regression line to verify that the listed predicted values for observations 7 and 8 are correct. Also verify that the residuals for observations 7 and 8 are correct. (b) Add up the squares of the residuals for all 8 observations and verify that the result matches the SSE given in the ANOVA table. COMPUTER CALCULATIONS: (NOTE: For any hypothesis tests, you may use alpha = 0.05.) 2. Look at the data in Table 8.29 on page 409 of the textbook. These data are also given in the SAS code "basketballdata.txt" on the course web page. (Equivalent R code to read in the data is given as "basketballdataR.txt" on the course web page.) Complete a SAS or R program and answer the following questions about the data set: (a) Estimate the multiple regression model with GOALMADE as the dependent variable and WEIGHT, HEIGHT, and DASH100 as the independent variables. State the estimated regression equation. Carefully interpret the partial regression coefficient for HEIGHT. (b) Using the P-values listed in SAS or R, carefully state what the t-tests about the regression coefficients tell you about the individual effects of WEIGHT, HEIGHT, and DASH100 on GOALMADE. (c) Using a TEST statement in SAS, test whether at least one of WEIGHT and DASH100 is needed in the model, given that HEIGHT is in the model. State the hypotheses and give the P-value of the test along with your conclusion. (You may also use relevant code in R.) 3. Look at the data in Table 8.31 on page 411 of the textbook. These data are also given in the SAS code "liverdata.txt" on the course web page. (Equivalent R code to read in the data is given as "liverdataR.txt" on the course web page.) Complete a SAS or R program to answer the following questions about the data set: (a) Fit the regression model with the survival time, TIME, as the dependent variable, and CLOT, PROG, ENZ, and LIV as the independent variables. Perform a residual analysis. Comment on any possible model violations. (b) Fit the regression model with the log survival time, LOGTIME, as the dependent variable, and CLOT, PROG, ENZ, and LIV as the independent variables. Perform a residual analysis. Are any model violations alleviated? (NOTE: For this residual analysis, in adapting the sample SAS code, change the PRED and RES in the code to PRED2 and RES2 so that they won't have the same names as the values in the residual analysis in part (a).) (c) Find the R^2 value for the regression equation from part (b). Interpret its value in the context of this problem.