Starting from:

$25

MSDS6371-Homework 12 Solved

1.      As part of a study of the effects of predatory intertidal crab species on snail populations, researchers measured the mean closing forces and the propodus heights of the claws on several crabs of three species. The crab data will be in your files repository.

·        Use alpha = 0.05, where necessary.

·        Use SAS and provide relevant code and output.

a.      Step 1: Use the code from Dr. McGee’s lecture to plot a scatter plot of claw closing force (response variable) versus propodus height (explanatory variable), with different plotting symbols (or colors) to distinguish the three different crab species. Judging from an initial visual assessment of the scatterplots, you may apply a transformation and replot in this step. If a transformation is necessary, you only need to provide the scatterplot for the most visually satisfying transformation for now (but still provide a scatterplot of original data). You will formally assess the fit of the model in Step 4.

b.      Step 2:  Build a model. (Simply write an appropriate equation as was shown in class.) This model should allow for separate fits (separate lines) for each crab species and should also allow for each line to have its own slope. Use lopho crab as the reference. (This is the default if the data is in alphabetical order.)

c.      Step 3: Fit the model. (Fill in the relevant betas in your equation for step 2.) Make sure you provide relevant code and the table of parameter estimates as well.

d.      Step 4: Provide a residual plot, studentized residual plot, histogram of residuals, and q-q plot of residuals to provide evidence of the appropriateness of the model. Provide a short one- or two-sentence discussion of EACH plot.  

e.      Step 5: If the fit assessed in Step 4 is sufficient, interpret each coefficient in the model.

f.       Provide three individual regression equations (one for each crab species).

 

2.      Read the introduction to the Mammal Brain Weight data that starts on page 239 (Section 9.1.2). Download the Brain data set from 2DS.  We would like to see if gestation length and litter size are associated with brain weight after controlling for different body sizes. That is, we already know that brain size is related to body weight; therefore, we don’t want body size to be a confounding variable.  We would like to measure the association of the other variables after taking into account the body size.

 

Answer this question by performing an analysis by following the 5 steps laid out in the problem above. Remember in step 2 to only include the terms that will help you answer this question of interest (QOI).

·        Use alpha = 0.05, where necessary.

·        Use R and provide relevant code and output.

 

3.      Bonus

a.      How many degrees of freedom were used to estimate the error term (MSE) in question 1?

b.      What is the estimate of the MSE in question 1?

c.      Repeat 1(a) in R.

d.      Repeat 1(c) in R.

e.      How many degrees of freedom were used to estimate the error term (MSE) in question 2?

f.       What is the estimate of the error (MSE) in question 2?

More products