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 below from Coders' Corner, more to come soon!


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

Luke Milsom    

Alex Copestake 

Sanghamitra Mukherjee 

Binta Zahra Diop

Karan Nagpal 

Marta Grabowska   

Meredith Paker

Lukas Hensel   

Emma Riley

Vatsal Khandelwal 

Giulio Schinaia

Mahreen Mahmud 

Vanessa Schreiber

Lisa Martin 

Katherine Stapleton

Muhammad Meki   

Marc Witte

Working with Sparse Matrices in Matlab (and R)

Introduction to R Markdown and Literate Programming

Using OpenRefine to Cluster and Edit Strings

How to merge datasets using the Matchit routine

Personalised Surveys on Qualtrics

Automating Stata to Write your LaTeX for you

Data Cleaning Routine for String Variables


Creating Interactive Shiny Apps in R

Animated Graphs in MATLAB

Machine Learning and Inference

Autogenerate your folder structure

Specification plots using speccurve

Creating Network Diagrams In GEPHI

Random Dyads in Sparse Networks

Mediation Analysis

Endogenous Stratification

Synthetic Control Method in Stata

Creating Maps in Stata

An Alternative Text-Editor to Write and Run Your Stata Code

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