In Gelman and Hill's 2007 book, Data Analysis Using Regression and Multilevel/Hierarchical Models, chapter 11 begins the exploration of multilevel models. To do so, they introduce a data set that relates city level child support enforcement policies to individual outcomes. Because the treatment is at the city level, this serves to show how sometimes it is good to model the city level effects (at the higher level of the hieratchical model) and then model those as having effects on individuals (the lower level). I'd like to follow along but the data set doesn't seem to be in either of the two places on Gelman's website where he keeps data:

  1. Data and software for the examples in the book
  2. More data and software for the examples in the book. (Sorry we're a bit disorganized right now!)

Anyone know where to find these data?


I just faced the same problem and found the solution:

Use this code in R:

input Stata file

library(foreign) child <- read.dta("C:\child.iq.dta")

Code found here:(https://www.statmethods.net/input/importingdata.html)

You need the double " \ " if you're using R. read.dta(" ") Type the exact folder with data ending. Be careful to use common characters, otherwise R could have problems finding the folder. In my case I just saved the files on C:\.

This way you can access all Data.

I'm using the latest R-Studio version.

I hope I could help you!

  • 3
    $\begingroup$ You'll not find the complete data in the files "child.iq.dta" nor "kidiq.dta". Gelman and Hill say in the book (p.248): "The child support example comes from Nepomnyaschy and Garfinkel (2005)." In that paper they say: "For a detailed description of the FF study design, see Reichman, Teitler, Garfinkel, and McLana- han (2001)." Finally I found this on Wikipedia: en.wikipedia.org/wiki/… where's a link to opr.princeton.edu, where you can register and they may send you the data. $\endgroup$
    – Toby
    Nov 16 '18 at 11:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.