

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Class: Statistical Methods for Bioscience II; Subject: HORTICULTURE; University: University of Wisconsin - Madison; Term: Spring 2007;
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Stat/For/Hort 572 Larget March 23, 2007
Assignment #8 — Due Friday, March 30, 2007, by 4:00 P.M.
Turn in homework in lecture, discussion, or your TA’s mailbox. Please indicate the discussion section you expect to attend to pick up this assignment.
311: Tues. 1:00–2:15 312: Wed. 2:30–3:45 313: Wed. 1:00–2:
Needle # 1 2 3 4 5 6 7 8 9 10 149 136 143 121 148 129 127 134 117 129 143 139 142 133 121 134 130 137 128 132 138 129 124 126 124 127 123 119 117 131 131 143 134 130 128 113 125 130 118 137
(a) Write down the random effects model appropriate to this problem identifying all terms used. State the distributional assumptions. Why is a random effects model more appropriate than a fixed effects model? (b) Draw a nesting diagram for the model variables as in the notes. (c) Examine a plot of the stomata counts versus needle. Are the random effects model assumptions rea- sonable? (d) Estimate all relevant variance components defined in (a) using both lmer and from computations with sums of squares using an ANOVA table from an analysis using lm (or aov) based on the expected mean square error (EMS) expressions of σ^2 e + nσ^2 a for “treatment” and σ^2 e for error. (See end of notes for Random Effects in R.) Are the estimates similar?
Leaf # I II III IV V VI VII VIII 11.4 20.2 14.3 23.6 8.4 18.3 21.6 12. 19.3 17.0 11.1 23.1 10.7 16.2 15.8 9. 16.2 15.8 12.8 19.9 12.3 23.0 17.2 11. 13.6 18.9 8.9 21.0 9.8 19.4 19.8 10.
(a) Examine a dotplot of the data that shows the insect data plotted against each leaf. Do the mean counts look similar for each leaf? Is the spread of counts similar for each leaf? (You do not need to include the plot in your solution, but you may if it makes you happy.) (b) Give a suitable model for describing these data, identifying all terms in the model and identifying any distribution assumptions. Draw a nesting diagram for the model variables as in the notes, indicating which variables should be modeled as random effects and which as fixed. (c) Find a 95% CI for μ assuming a t distribution with 7 degrees of freedom. (d) Use the mcmcsamp function with a sample size of 10,000 to find a 95% credible region for μ. How does this region differ from that found in (c)? Is its width much larger, much smaller, or about the same?
Stat/For/Hort 572 Larget March 23, 2007
(e) Fit a model for insects using leaf as a fixed effect using lm. Based on this model find a 95% CI for μ. How many degrees of freedom are used here? How does this interval compare with the intervals from parts (c) and (d)? Which interval or inervals are most appropriate? (f) In a balanced experiment with k leaves and s disks sampled from each leaf, the expression for the variance of the intercept treating leaf as a random effect is as follows.
V(ˆμ) =
σ a^2 k
σ e^2 ks Verify that this expression is consistent with the summary in R using lmer. (g) Suppose that 16 leaves had been selected and two disks per leaf had been taken. Assume that the same estimates for σ e^2 and σ^2 a are obtained as in the actual experiment (using notation from lecture). What would the estimate of the variance of ˆμ be in this case? Compare this with the estimate for the variance of ˆμ in the actual experiment. Interpret the comparison. Is it better to sample more leaves or more disks per leaf given a fixed total sample size?
Recipe A B C Loaf 1 0.18 0.19 0. 0.15 0.16 0. 0.16 0.18 0. Loaf 2 0.14 0.23 0. 0.12 0.20 0. 0.14 0.20 0.
(a) Write down a random effects model appropriate for this experiment. Identify the terms of the model. Draw a nesting diagram for the model variables as in the notes. (b) Plot the data versus loaf and versus recipe. Summarize your observations. Is the model reasonable? (c) Is there much difference in the recipes effect on calcium content in bread? Summarize your findings.