Contains 20 observations on the response variable y along with the predictor variables x and d. y x d 26 80 1 16 80 1 24 59 0 13 51 0 17 55 0 16 55 1 8 20 0 15 35 1 21 48 0 17 42 0 20 78 1 14 52 1 20 62 0 15 32 0 23 45 1 6 27 0 17 65 0 22 59 1 8 21 0 15 30 1 a. Estimate a regression model with the predictor variables x and d, and then extend it to also include the interaction variable xd. What is the estimated regression coefficient for the predictor variable x in both models? (Negative values should be indicated by a minus sign. Round your answers to 2 decimal places.) ) Model 1(No Interaction) = Model 2 (Interaction)= a-2. Use the preferred model to predict y. (Round coefficient estimates to at least 4 decimal places and final answers to 2 decimal places.) Predictor Variables Predicted Y x=15, d=0 ? x=15, d=1. ?
Contains 20 observations on the response variable y along with the predictor variables x and d.
y | x | d |
26 | 80 | 1 |
16 | 80 | 1 |
24 | 59 | 0 |
13 | 51 | 0 |
17 | 55 | 0 |
16 | 55 | 1 |
8 | 20 | 0 |
15 | 35 | 1 |
21 | 48 | 0 |
17 | 42 | 0 |
20 | 78 | 1 |
14 | 52 | 1 |
20 | 62 | 0 |
15 | 32 | 0 |
23 | 45 | 1 |
6 | 27 | 0 |
17 | 65 | 0 |
22 | 59 | 1 |
8 | 21 | 0 |
15 | 30 | 1 |
a. Estimate a regression model with the predictor variables x and d, and then extend it to also include the interaction variable xd. What is the estimated regression coefficient for the predictor variable x in both models? (Negative values should be indicated by a minus sign. Round your answers to 2 decimal places.) )
a-2. Use the preferred model to predict y. (Round coefficient estimates to at least 4 decimal places and final answers to 2 decimal places.)
Predictor Variables Predicted Y
x=15, d=0 ?
x=15, d=1. ?
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 4 images