# Do these plots suggest the possible need for the

This preview shows page 1. Sign up to view the full content.

This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ales and females. Do these plots suggest the possible need for the interaction terms between sex and the other predictors? (b) Fit a model with gamble as the response and the other variables as predictors that includes the interaction terms between sex and the other predictors. Determine whether this model may be reasonably simpliﬁed. Exercise 3 Suppose a complete second-order model yi = b0 + b1 xi1 + b2 xi2 + b3 xi1 xi2 + b4 x21 + b5 x22 + ei i i was ﬁt to n = 24 observations. &gt; sum( lm( y ~ 1 )\$residuals^2 ) [1] 360 &gt; sum( lm(y ~ x1+x2)\$residuals^2 ) [1] 126 &gt; sum( lm(y ~ x1+x2+I(x1*x2))\$residuals^2 ) [1] 100 &gt; sum( lm(y ~ x1+x2+I(x1*x2)+I(x1^2)+I(x2^2))\$residuals^2 ) [1] 72 (a) Perform the “signiﬁcance of the regression” test at a 5% level of signiﬁcance. (b) Test whether the second-order terms are signiﬁcant at a 5% leve...
View Full Document

Ask a homework question - tutors are online