Docsity

Homework Assignment: Regression Analysis and ANOVA Modeling, Assignments of Statistics

Toggle sidebar
bg1
Homework 5
File: homework-05-10oct08-basic-models.doc
Directory: \\Muserver2\USERS\B\\baileraj\Classes\sta402\handouts
Assigned: 10 October 2008
Due: 17 October 2008
1. Repeat the regression analysis of the Manatee – Boat registration data
a. Fit the model MANATEE = β00 + β1 NBOATSi + εi
b. Fit the model MANATEE = β01 + β1 [NBOATSi-min(NBOATS)] + εi
c. Fit the model MANATEE = β02 + β1[NBOATSi-average(NBOATS)] + εi
Prepare a table summarizing the estimated regression coefficients, standard errors, P-values
for these three models. Hint: use ODS output to manipulate the coefficient information. For
each model, generate the predicted number of manatee death if the number of boats
registered was 725,000. Do the predictions vary between the models?
2. Fit a no-intercept model to the Manatee – Boat registration data. Prepare a plot displaying a
scatterplot of the data. Superimpose the fit of the no intercept model AND the fit of a model
with both intercept and “nboats” present on this scatterdiagram. Which model do you prefer?
3. Refer to the 4 group (packaging method)- log-bacterial growth study. In this exercise, you will
compare the one-way anova model to regression with coding.
a. Fit the anova model and obtain the estimated effects (estimates of μ, α1, α2, α3, α4) using
SOLUTION option to the GLM model statement.
proc glm data=meat order=data;
title2 fitting the one-way anova model via GLM;
class condition;
model logcount = condition/solution;
means condition;
run;
b. Define 4 indicator variables, one for each of the conditions. For example, let ICO2 = 1 if
condition=”CO2” and ICO2=0 otherwise. Define the other 3 indicator variables similarly.
c. Can you fit a regression model with all indicator variables included? If so, how?
pf2

Partial preview of the text

Download Homework Assignment: Regression Analysis and ANOVA Modeling and more Assignments Statistics in PDF only on Docsity!

Homework 5

File: homework-05-10oct08-basic-models.doc

Directory: \Muserver2\USERS\B\baileraj\Classes\sta402\handouts Assigned: 10 October 2008 Due: 17 October 2008

  1. Repeat the regression analysis of the Manatee – Boat registration data a. Fit the model MANATEE = β 00 + β 1 NBOATSi + εi b. Fit the model MANATEE = β 01 + β 1 [NBOATSi -min(NBOATS)] + εi c. Fit the model MANATEE = β 02 + β 1 [NBOATSi -average(NBOATS)] + εi Prepare a table summarizing the estimated regression coefficients, standard errors, P-values for these three models. Hint: use ODS output to manipulate the coefficient information. For each model, generate the predicted number of manatee death if the number of boats registered was 725,000. Do the predictions vary between the models?
  2. Fit a no-intercept model to the Manatee – Boat registration data. Prepare a plot displaying a scatterplot of the data. Superimpose the fit of the no intercept model AND the fit of a model with both intercept and “nboats” present on this scatterdiagram. Which model do you prefer?
  3. Refer to the 4 group (packaging method)- log-bacterial growth study. In this exercise, you will compare the one-way anova model to regression with coding. a. Fit the anova model and obtain the estimated effects (estimates of μ, α 1 , α 2 , α 3 , α 4 ) using SOLUTION option to the GLM model statement. proc glm data=meat order=data; title2 fitting the one-way anova model via GLM; class condition; model logcount = condition/solution; run;^ means condition; b. Define 4 indicator variables, one for each of the conditions. For example, let ICO2 = 1 if condition=”CO2” and ICO2=0 otherwise. Define the other 3 indicator variables similarly. c. Can you fit a regression model with all indicator variables included? If so, how?

d. Fit 4 different regression models with 3 of the 4 indicator variables. Which fit matches the solution from part a? What does this tell you about the coding in the model fit from part 2a? model logcount = IPlastic IVacuum IMixed; model logcount = IPlastic IVacuum ICO2; model logcount = IPlastic IMixed model logcount = IVacuum IMixed ICO2;ICO2;

  1. Big Brains-Big Bodies (revisited^2 ). Fit a model allowing dinosaurs to have different intercepts only using PROC GLM with a class statement. Comment on how this compares to the analysis in the chapter.
  2. TIME TO START THINKING ABOUT YOUR PROJECT … Include a couple of sentences describing what you propose to do as part of this project. This can be pretty sketchy at this time and I expect that this will evolve as you think more about this. Possible projects could include an extensive analysis of a data set of interest to you (including detailing how a SAS data set was constructed, analyses that were performed, reporting the results), an detailed exploration of SAS topics that we have not discussed (e.g. how do you construct MAPS in SAS and a presentation of map data), implementing the study of some statistical or mathematical problem (e.g. generating random graphs and looking at connectivity in the graphs). The world is your proverbial oyster here. Feel free to discuss this with me.