MEPX
Chapter 12 of 13All chapters

Chapter 12 of 13

Tools of the trade

Spreadsheets, SQL and code.

Picking one

Spreadsheets are fast for small, one-off work and hard to review. SQL is how you get data out of a database. Python and R handle repeatable analysis and anything statistical.

  • If you would have to do it twice, write it as code.
  • Version control matters as much for analysis as for software.

Reproducibility

Someone should be able to run your work and get your numbers, including you in six months. That means the raw data, the steps and the outputs are separate and the steps are written down.