Consider the following data:
| X | 0.8 | 0.6 | 0.8 | 0.2 | 0.5 | 1.0 | 0.3 | 0.1 | 0.2 | 0.5 |
| D1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 |
| D2 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 |
| Y | 1.0 | 0.8 | 2.2 | 1.4 | 1.7 | 3.4 | 0.3 | 0.4 | 1.5 | 1.9 |
D1 and
D2 are indicator variables representing a qualitative predictor with three levels (e.g.,
D1 =
D2 = 0 represents “low,”
D1 = 1 and
D2 = 0 represents “medium,” and
D1 = 0 and
D2 = 1 represents “high”). Use statistical software to fit a multiple linear regression model with response variable,
Y, and predictor variables,
D1,
D2,
X,
D1X, and
D2X (the last two are interaction variables). Use the fitted model to answer the following questions.
Comments are closed