Starting from:

$25

MSDS6371-Homework 10 Solved

1.      Black-eared wheatears are small birds of Spain and Morocco. Males of the species demonstrate an exaggerated sexual display by carrying many heavy stones to nesting cavities. This 35-gram bird transports, on average, 3.1 kg of stones per nesting season! Different males carry somewhat different sized stones, prompting a study of whether larger stones may be a signal of higher health status. M. Soler et al. calculated the average stone mass (g) carried by each of 21 male black-eared wheatears, along with T-cell response measurements (in mm) reflecting their immune system strengths. Analyze the data and write a statistical report (by answering the questions below); treat the T-cell as the response and the stone mass as the explanatory variable. You may assume all criteria for regression and related t-tests are met. You can find the data for this problem on 2DS. (Male Display Data Set)

Analyze the data, providing the following:

                               a.     Provide a scatterplot with 99% confidence intervals of the regression line and 99% prediction intervals of the regression line. Please do this in R.

                               b.     Provide a table showing the t-statistics and p-values for the significance of the regression parameters   (as different from 0). Please do this in R.

                               c.     Using the output in (b), show all 6 steps of each hypothesis test. (That’s one test for   and one test for  .) Find critical values in R. Your conclusion should include a confidence interval. Use alpha = 0.01.

                               d.     State the regression equation. Be careful to use the mean Tcell or predicted Tcell, rather than just Tcell.

                               e.     Interpret the slope in the model (regression equation).

                                f.     Interpret the y-intercept in the model (regression equation).

                               g.     Find and interpret the 99% confidence interval for the mean t-cell response conditional on a stone mass of 4.5 grams. Please do this directly in R.

                               h.     Find and interpret the 99% prediction interval for the predicted t-cell response given a stone mass of 4.5 grams. Please do this directly in R.

                                i.     Calibration intervals:

1.      Using the graphical method (using your best judgment using the graphs from part (a)), find the following using R, as part (a) was done in R.

a.      99% calibration interval for the mean t-cell response of 0.3.

b.      99% calibration interval for a single t-cell response of 0.3.

2.      Using software directly, find the following using R, as SAS does not provide calibration intervals directly. (R: package investr)

a.      99% calibration interval for the mean t-cell response of 0.3.

b.      99% calibration interval for a single t-cell response of 0.3.

3.      Interpret the following using the results from (1) and (2) above.

a.      99% calibration interval for the mean t-cell response of 0.3.

b.      99% calibration interval for a single t-cell response of 0.3.

                                j.     Provide a scatterplot of residuals. Please do this in R.

                               k.     Provide a histogram of residuals with a normal distribution superimposed. It might be helpful to use studentized residuals, rather than regular residuals, with a normal curve overlay. Use R. (You may need to research this, such as googling “histogram with normal curve in R.”)

                                l.     Provide a measure of the proportion of variation in the response that is accounted for by the explanatory variable. Interpret this measure. Use R.

2.      Using the data for Black-eared Wheatears, calculate by “hand” (using Excel) the following elements. (An example of much of this was in the PowerPoints and in the videos below.)

a.       

b.    The t-statistics and p-values for the hypothesis tests (  and for  ).

c.      99% confidence intervals for the mean of Y when X = {3,4,5,6,7,8,9} grams. You do NOT need to make a Bonferroni (or any other type of) multiple interval correction, as the primary purpose of these intervals is to be able to plot confidence interval bands.  

d.      99% prediction intervals for the predicted Y when X = {3,4,5,6,7,8,9} grams. You do NOT need to make a Bonferroni (or any other type of) multiple interval correction, as the primary purpose of these intervals is to be able to plot prediction interval bands.

e.      Provide a plot for the confidence intervals and prediction intervals using Excel. Fully label your graph. (Use the regression equation and parts (c) and (d) above to create the plot.)

f.       Calibration intervals:

i.       Using the SE equations given in class and in the book (Version 3 page 194), find the following analytically. (Use Excel for calculations.)

a.      99% calibration interval for the mean t-cell response of 0.3.

b.      99% calibration interval for a single t-cell response of 0.3.

j.       Using the Excel graphs, find the following. You may want to add data points to parts (c) and (d) so that the confidence and prediction limits extend well beyond the data range (although their interpretation is questionable outside the range).

a.      99% calibration interval for the mean t-cell response of 0.3.

b.      99% calibration interval for a single t-cell response of 0.3.

 

3.      Bonus!

a.      Repeat 1 (a) using SAS.

b.      Repeat 1 (b) using SAS.

c.      Repeat 1 (c) using SAS.

d.      Repeat 1 (g) using SAS.

e.      Repeat 1 (h) using SAS.

f.       Repeat 1 (j) using SAS.

g.      Repeat 1 (k) using SAS.

h.      Repeat 1 (l) using SAS.

More products