SInce the Spring of 2016 all of the code and data for the book has been located in the R package BaM, including both R and JAGS. Answers to odd numbered exercises are here. The Corrected index for the very first print run (few people will need this). The state.df dataset got left off the BaM package so it's here. The errata for the third edition are here.
In this article, we develop and make available measures of public ideology in 2010 for the 50 American states, 435 congressional districts, and state legislative districts. We do this using the geospatial statistical technique of Bayesian universal kriging, which uses the locations of survey respondents, as well as population covariate values, to predict ideology for simulated citizens in districts across the country. In doing this, we improve on past research that uses the kriging technique for forecasting public opinion by incorporating Alaska and Hawaii, making the important distinction between ZIP codes and ZIP Code Tabulation Areas, and introducing more precise data from the 2010 Census. We show that our estimates of ideology at the state, congressional district, and state legislative district levels appropriately predict the ideology of legislators elected from these districts, serving as an external validity check.