You are on page 1of 1

Statistical Topics in Food Technology

Assignment homework 3

Read the help file of the step R function (type ?step).


Download the pigs2 dataset from Minerva (The data are discussed in the slides of Lecture 3).
1. Use the AIC criterion to perform a forward model selection considering only main effects. Discuss
the output.
2. Check the assumptions of your final model.
3. Give an interpretation of the model parameters and construct 95 % confidence intervals.
4. Perform now a backward elimination, again using the AIC criterion. The starting model should
contain only the main effects. (No need to repeat steps 2 and 3).
Download the bloodclotting dataset from Minerva (The data are discussed in the slides of Lecture 3).
5. Explain in a few lines the main difference between using R2 and AIC for selecting models.
6. Use the AIC criterion to perform a stepwise model selection (direction = both, in step R function).
Start with a simple model containing only the intercept and and upper model containing only main
effects. Discuss the output.
7. Check the assumptions of your final model.
8. Recall that
AIC nlog(SSE/n) + kp,
for k = 2 (see lecture 3). Setting k = 0, perform a stepwise model selection (direction = both).
Start with a simple model containing only the intercept and and upper model containing only main
effects.
9. Models obtained in (6) and (9) differ. Briefly explain why.
You can put all R output in the appendix. The written report (without the appendix) should not exceed 3
pages.

You might also like