Modern Stata Project Demo

This is a demonstration of a modern Stata project structure that integrates Jupyter notebooks, Quarto, and VSCode for data analysis and reporting. You can find explantions in

Preparation

VSCode

Jupyter and Quarto

Stata

  1. Following reproo-files, set up reproot-env.yaml in your home directory
  2. Clone this repository
  3. Install dependencies in Stata
ssc install repkit
ssc install estout

Project Structure

  • notebook/ - Quarto notebooks with analysis
  • manuscript/ - LaTeX manuscript
  • code/ - Stata do files
  • data/ - Data files
  • output/ - Generated figures and tables

You can try if you can run code/penguins.do cell by cell by vscode-stata extension and compile the notebook notebook/penguins.qmd to HTML or PDF.