Do these plots suggest the possible need for the

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

View Full Document Right Arrow Icon
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 simplified. 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 fit to n = 24 observations. > sum( lm( y ~ 1 )$residuals^2 ) [1] 360 > sum( lm(y ~ x1+x2)$residuals^2 ) [1] 126 > sum( lm(y ~ x1+x2+I(x1*x2))$residuals^2 ) [1] 100 > sum( lm(y ~ x1+x2+I(x1*x2)+I(x1^2)+I(x2^2))$residuals^2 ) [1] 72 (a) Perform the “significance of the regression” test at a 5% level of significance. (b) Test whether the second-order terms are significant at a 5% leve...
View Full Document

Ask a homework question - tutors are online