Skip to main content

Tutorials & Templates

Tutorials, templates, and tools I’ve built or rely on. Everything here is free to use and adapt.

“I’m starting my first research project.”

Start here: the six steps from an empty folder to a finished paper, using the tutorials below in order.

“I heard you do cool things with spreadsheets.”

Every Google Sheet I’ve built, with the question each one answers.

Tutorials

Research data management

A ready-to-clone project skeleton with organized folders, a master do-file, and LaTeX formatting presets for tables and papers. Click Use this template on GitHub.

Stata data cleaning

Worked examples of cleaning raw survey and administrative data in Stata.

LaTeX tutorials

A library of small examples that break down document elements one at a time, so you can see exactly how each command changes the compiled output.

GitHub + Overleaf workflow

How to keep an Overleaf paper in sync with a GitHub repository so co-authors and code live in one place.

Do-file templates

Reusable do-file starters for cleaning, analysis, and table export.

Stata → LaTeX automation

Do-files that write complete LaTeX tables for both papers and Beamer slides, export figures as vector and raster images, and keep local output in sync with the draft on Overleaf.

Field experiments with KoboToolbox

How I built a household survey plus a lab-in-the-field experiment (3 randomized games × 60 rounds) in KoboToolbox, with paper backups to catch entry errors, and prototyped it first in Google Sheets.

Finance

All Weather Antifragile Portfolio

My model portfolio: 90% built on the All Weather idea of balancing risk across economic regimes (ESG equities, nominal and inflation-protected Treasuries, green bonds, gold, and commodities), and 10% in tail-risk hedges designed to pay off if that model breaks. Each of the 13 ETFs is listed with its risk weight, portfolio weight, and the conditions it performs well and poorly in.

Model allocation · 13 ETFs · View the strategy (PDF)

To replicate it, use the Portfolio Allocation Model template: enter your balance, cash, and current shares, and it shows how far each ETF sits from its target and how many shares to buy or trim to rebalance. Share prices update live from Google Finance. You can also swap in different funds.

Template · Google Sheets · Open the template · Download the template (PDF)

This is my personal strategy, shared for educational purposes. It isn’t investment advice.

Spreadsheet tools

The portfolio model, the N1 dataset, the Economic Indicators Dashboard, and more are collected on the Spreadsheets page.