Did you hear about the mathematician who was afraid of negative numbers?
He would stop at nothing to avoid them
DellaPosta, D., Shi, Y., & Macy, M. (2015). Why Do Liberals Drink Lattes? American Journal of Sociology, 120(5), 1473–1511.
Principles for code organization
Reproducible workflows and best practices
- The idea is to be able to fix any step in the workflow and have the rest run with minimal problems
- Data updates
- Changes to measures or questions
- Save raw data
- Run code in order
- Write comments! (or text in Jupyter)