Question: 2. Now, add an interaction term between salary and number of children to the above model, i.e., first identify an interaction term between salary and

2. Now, add an interaction term between salary and number of children to the above model, i.e., first identify an interaction term between salary and the number of children, then include it as a third predictor variable (in addition to the main effects of salary and number of children). Then, answer the following questions:

Tips:

lm(formula = AmountSpent ~ Salary + Children + Salary * Children, data = d)

Coefficients:

Estimate Std. Error t value Pr(>|t|)

(Intercept) -6.167e+01 5.646e+01-1.092 0.275

Salary 2.673e-02 9.022e-0429.632 < 2e-16 ***

Children 7.691e+00 3.971e+01 0.194 0.846

Salary:Children -4.234e-036.078e-04 -6.966 5.91e-12 ***

---

Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.'0.1 ' ' 1

Residual standard error: 626.5 on 996 degrees of freedom

Multiple R-squared: 0.5763, Adjusted R-squared: 0.575

F-statistic: 451.6 on 3 and 996 DF, p-value: < 2.2e-16

Question: Is the interaction term significant? If the number of children increases by 1, what is the corresponding impact on AmountSpent?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!