For the following five exercises, you will need to construct indicator variables to use categorical variables as explanatory variables in logistic regression. Be sure to review the material in Chapter 11 on models with categorical explanatory variables (pages 571-575) before attempting these exercises.
17.39 Is there a trend?
Refer to the previous exercise. The coding of the indicator variables suggests a way to code models when you expect a pattern in the response that is based on some kind of ordering of the explanatory variable. In some settings this is called detecting a dose response.
17.39
(a) For Division . For Division . For Division . (b) The plot shows that log(odds) of gambling increases as Division increases. (c) Because the relationship is quite linear, we could use a regression analysis.