STAT 516 HW 6 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. 1. Look at the data in Table 11.20 on page 587. These data measure the circumference of trees in Colorado. The main factor of interest is the side (north or south) of the mountain on which the tree grows. A covariate which may influence the circumference is the number of rings the tree has (i.e., its age). Use R to fit an equal-slopes Analysis of Covariance model for these data. The data and R code are given in the course web page under "treedataR.txt" (for use in R). (a) Based on the overall F-statistic, is the ANCOVA model useful? Use alpha = .05 and give evidence (such as a P-value) to support your conclusion. (b) Does the covariate "Rings" have a significant effect on tree circumference? Use alpha = .05 and give evidence (such as a P-value) to support your conclusion. (c) Does the factor "Side" have a significant effect on tree circumference? Use alpha = .05 and give evidence (such as a P-value) to support your conclusion. (d) For the ANCOVA model for the tree data, carefully interpret the estimated slope parameter. (e) For the ANCOVA model for the tree data, find the ADJUSTED sample mean circumferences for each value of "Side". By "adjusted", I mean that your expressions for the sample mean circumferences for each value of "Side" should depend on the value of X (the age), and so these expressions should involve X. (f) For the ANCOVA model for the tree data, test whether the equal-slopes model is sufficient. Use alpha = .05 and give evidence (such as a P-value) to support your conclusion. 2. Table 13.15 on page 646 lists, for 71 patients, the size of the ventricle (a part of the brain), as well as whether brain wave (EEG) readings are normal (0) or abnormal (1). The data and R code are given in the course web page under "braindataR.txt" (for use in R). (a) Write the form of the logistic regression model to be used if we want to determine whether ventricle size is related to the probability of abnormal brain wave behavior? (b) Use the glm function in R to fit the logistic regression model. (c) Based on the Hosmer-Lemeshow test, does the logistic regression model seem appropriate? Use alpha=0.05. (d) Test whether ventricle size has a significant effect on the probability of abnormal brain wave behavior. Use alpha=0.05. (e) Find and interpret the estimated odds ratio. (f) Is a person with a smaller venticle size estimated to have a lesser or greater probability of abnormal brain wave behavior than a person with a larger ventricle size? (g) Use R to plot the estimated regression curve.