Share your code! (Here is some for Add Health)

The National Longitudinal Study of Adolescent Health, aka Add Health, has been in use for more than a decade ago.  Thousands of researchers have used it.  This is fantastic.  There are great economies of scale in the data collection.

Sadly, we researchers have wasted years doing things that others have already done. Anyone beginning a new project must first clean their data.  Add Health doesn’t require as much cleaning as some other, messier sources of data, thanks to people like Joyce Tabor, James Moody, Ken Frank, and many others.  Still, I think research would be sped up quite a lot, and communication greatly enhanced, if people shared their code more widely.  Therefore I’ve created my first github code repository which prepares the variables from the widely used in-school questionnaire portion of Add Health.

https://github.com/MichaelMBishop/inschoolAddHealth

This will be of most use to people using R, but the data could be exported.  The script also includes cross tabulations and fairly detailed comments which I hope will help people think about the data.  Some time soon I’ll upload more code.

I recommend Jeremy Freese on reproducibility in sociological research here and here.  Andy Abbott’s best objections don’t apply to a widely used data source like Add Health.

p.s.  Do share links to other code repositories in the comments!

Advertisements

7 Responses to Share your code! (Here is some for Add Health)

  1. […]  It will save a lot of researcher time, and ensure that the work that we do is reproducible.  My last post announced my contribution to github which consists of code to prepare some data from Add Health, […]

  2. […] Bishop, of the Permutations blog, has set up a web site to archive R code for Add Health. Rather than have every Add Health researcher reinvent the wheel, he wants to sponsor an open […]

  3. […] with a listing of variable names. I briefly referred to the reason behind discussing this code here, also it was promoted a little here, however these latter links aren’t really highly relevant […]

  4. […] previous posts on github and sharing code are here and here.  If you’re on github, follow […]

  5. Very nice. Thanks a lot for the Jeremy Freese recommendation.

  6. This rocks. Thanks for sharing.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: