Welcome to Coders' Corner!

Having trouble with Stata? Looking for useful tips on handling your data, exporting graphs or writing code? Then you've come to the right place.

Our DPhil student coders have created a series of useful tips to try to make your life easier (if you're lucky, they may even branch out into a bit of Matlab or Python).

You can download a new tip from Coders' Corner every week. Check in every Monday for the latest tip!

NEXT TIP: 20 January 2020


Having trouble with a certain area? Let us know and our coders might be able to make a tip about it:
This email address is being protected from spambots. You need JavaScript enabled to view it.

Want to know when a new tip becomes available? Simply sign up to our Coders' Corner mailing list for updates.


Raphael Bradenbrink           Karan Nagpal    
Marta Grabowska                  Meredith Paker
Lukas Hensel                         Emma Riley 
Vatsal Khandelwal                Giulio Schinaia
Muhammad Meki                  Katherine Stapleton
Luke Milson                           Verena Wiedeman
Sanghamitra Mukherjee      Binta Zahra Diop

Factor Analysis

Random Forests in Stata

Visualising trade-flow data over time in R using Chord GIFs

Compiling .tex files to .docx

How to bulk download Google search data

Flexible code for balance and summary tables in Stata

Large data sets and the need for speed

How to make Stata graphs look nice

Regularisation in Stata

Accessing folders and files

Simulation-based power calculations

Moving window regressions using MATLAB

Looping over all combinations of a variable list

How to digitize a dataset using your phone

How to write programs on Stata

Bootstrapped SE with three-way panels in Stata

Wild-bootstrapped t-statistics

Adjusting standard errors for spatial correlation

Calculating road distances between locations

Running loops over parallel lists

How to make bar charts of impacts with standard errors

What to do when you have many fixed effects

Adding stats to a table in Stata