Statistics 242 -- Applied Regression Analysis

Assignment

Lab Goals

In S-Plus, fitting multiple regression models involves the same steps as fitting a simple linear regression model. Select the Statistics Menu, choose Regression and Linear. The only step that changes is in the specification of the model formula. Recall, the model formula in simple linear regression,

Y ~ X

reads "the response y is modeled as a linear function of X". For multiple regression, we allow the mean of Y to be a function of multiple explanatory variables, so the model formula might be

Y ~ X1 + X2

which means that the response Y is modeled (the tilde) as a linear function of X1 and X2. The variables X1 and X2 can be anything. In exercise 13 we will examine quadratic regression, where we fit a model with time and time squared as variables; this is a special case of multiple regression. In exercise 14, we have 3 different explanatory variables. In Exercise 16 (covered in class) we created variables based on dummy variables and interaction variables

We will focus first on fitting multiple regressions, and then come back to interpreting the output in more detail in later labs.


Specific Tips for the Homework

Exercise 13

Exercise 14