
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?