phd student in sociology, novice programmer. your assistance is sincerely appreciated. seriously, the existence of stackoverflow is inspiring.