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
- Zenn(in Japanese)
Preparation
VSCode
- Install Visual Studio Code
- Install VSCode extensions for Jupyter, Quarto, and Stata
Jupyter and Quarto
Stata
- Following reproo-files, set up
reproot-env.yamlin your home directory - Clone this repository
- Install dependencies in Stata
ssc install repkit
ssc install estoutProject Structure
notebook/- Quarto notebooks with analysismanuscript/- LaTeX manuscriptcode/- Stata do filesdata/- Data filesoutput/- 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.