

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Stat/F&W/Hort 572 Ane January 22, 2009
Assignment #1 — Due Friday, Jan. 30, 2009, by 4 pm
Turn in lecture, discussion, or to your TA’s mailbox. Please circle the discussion section you expect to pick up this assignment: 311 312 313 314
(a) Plot the forced expiratory volume versus height. Use different colors or point characters for the smoke categories. The options pch=as.numeric(smoke) or col=smoke can be useful with the plot function in R. Describe the relationship between these variables. (b) Fit a simple linear model to predict fev using height as a predictor. Write the fitted model in the form (fev in ??) = ?? + ?? (height in ??) In what units are the slope and intercept? (c) For this linear model, plot the residuals versus the predicted fev values. What assumptions of the linear regression can be assessed with this plot, and do these assumptions seem to be met here?
(a) Plot the milk yield versus the initial weight of the cows. Describe the relationship between the vari- ables. What method from last semester may be appropriate to analyze the relationship between these variables? (b) Draw side-by-side boxplots of milk yield versus treatment. Describe the relationship between these variables. What method from last semester may be appropriate to analyze the relationship between these variables? (c) Fit a linear model to predict milk yield using both the initial weight of the cow and the treatment as predictors, assuming additive effects of these two predictors. Write the fitted model in the form (Yield in ??) = ?? + ?? (Weight in ??) for each treatment group. In what units are the slope and intercept? (d) What is the estimated standard error for the slope? (e) What is the estimated standard error for the intercept in the control treatment? (f) Is it reasonable to interpret the numerical value of the intercept? Explain. (g) What is the estimated difference in average milk yield between the control group and the high treatment group? (h) What is a typical distance for the actual yield to differ from the predicted yield? Indicate the units.
Stat/F&W/Hort 572 Ane January 22, 2009
height fertilizer sand 16.0 0 0 11.0 0 25 18.5 5 0 13.0 5 25 19.5 10 0 12.5 10 25
Construct the model matrix X for a multiple regression model to predict height from fertilizer and sand amounts if:
(a) both predictors are treated as quantitative; (b) fertilizer is treated as quantitative, but sand is treated as a factor with levels control and sandy; (c) fertilizer is treated as a factor with levels control, low, and high and sand is treated as a factor with levels control and sandy.
Reading: Acquire the textbook. Read Chapters 1–3.