

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 2008;
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Stat/For/Hort 572 Larget April 21, 2008
Assignment #8 — Due Friday, April 25, 2008, by 4:00 P.M.
Turn in homework in lecture, discussion, or your TA’s mailbox (just inside the main entrance to MSC). Please circle 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: Tue. 4:00–5:
The first several questions revisits the data from the file larch.txt, which contains measurements from 26 twenty-four-year-old larch trees, an evergreen tree related to pines, native to central Europe, that drop their needles every year. The observation number is in column 1 id. The explanatory variables are in columns 2–5 and are the percent content of nitrogen nitro, the percent content of phosphorus phos, the percent content of potassium potas, and the percent content of residual ash ash. The percent content of the minerals is determined from dried needles from the tree. The response variable, tree height (height) is in column 6 and is measured in inches. The objective of the study was to relate tree height to the mineral composition of the needles.
make.fake = function(x,fit) {
library(arm)
n = nrow(x)
sigma = sigma.hat(fit)
mu = fitted(fit)
x$height = rnorm(n,mu,sigma)
return( x ) }
Enter the function into R. Use the function to compute five fake data sets. For each data set, fit a regression model using the same predictors as the model in Problem 1. Plot residuals versus fitted values for both the real data and for the fake data sets. Is the pattern or residuals for the real data similar to the pattern for the fake data? Comment on what similarity or a lack of similarity implies about the goodness of fit of the model.
Stat/For/Hort 572 Larget April 21, 2008
Work to do, but not turn in.