Professional Stata Project Structure Initializer. One-click reproducible research infrastructure following J-PAL, DIME (World Bank), and AEA Data Editor standards.
- J-PAL/DIME/AEA Standards: Numbered folders (01_Data, 02_Scripts, 03_Outputs)
- LaTeX Integration: PUC thesis and standard templates with automatic macro generation
- GitHub Automation: One-command repository creation and deployment
- Bilingual Support: English/Spanish interfaces
- Cross-Platform: Windows, macOS, Linux compatible
net install projectinit, from("https://raw.githubusercontent.com/MaykolMedrano/projectinit/master/installation")- Download
projectinit.adoandprojectinit.sthlpfrominstallation/ - Copy to your Stata ado directory:
- Windows:
C:\ado\plus\p\ - Mac:
~/Library/Application Support/Stata/ado/plus/p/ - Linux:
~/.stata/ado/plus/p/
- Windows:
* Basic project
projectinit "MyResearch", root("C:/Research")
* Full setup with LaTeX, GitHub, and replication package
projectinit "PhD_Dissertation", ///
root("C:/Research") ///
lang(en) ///
latex(puc) ///
github(private) ///
replicate ///
verboseYourProject/
βββ run.do # Master execution script
βββ README.md # Project documentation
βββ .gitignore
βββ 01_Data/
β βββ Raw/ # Original, immutable data
β βββ De-identified/ # Anonymized data
β βββ Intermediate/ # Processed data
β βββ Final/ # Analysis-ready datasets
βββ 02_Scripts/
β βββ Ados/ # Custom programs
β βββ Data_Preparation/ # Cleaning scripts
β βββ Analysis/ # Main analysis
β βββ Validation/ # Robustness checks
βββ 03_Outputs/
β βββ Tables/ # LaTeX/CSV tables
β βββ Figures/ # PDF/PNG figures
β βββ Logs/ # Execution logs
βββ 04_Writing/ # LaTeX manuscript (if latex() used)
βββ 05_Doc/ # Documentation, codebooks, IRB
βββ 06_Replication/ # AEA-compliant package (if replicate used)
projectinit projectname, root(string) [options]| Option | Values | Default | Description |
|---|---|---|---|
root() |
path | required | Parent directory for project |
lang() |
en | es |
en |
Interface language |
latex() |
puc | standard |
none | LaTeX template |
github() |
public | private |
none | Create GitHub repository |
author() |
"name" |
username | Author name |
email() |
"email" |
β | Contact email |
replicate |
β | β | Include AEA replication package |
overwrite |
β | β | Overwrite existing project |
verbose |
β | β | Display detailed output |
- Never modify raw data β Keep
01_Data/Raw/untouched - Use dynamic paths β Always use globals from
run.do - Set random seeds β Ensures reproducible results
- Document dependencies β List all packages in
run.do - Version control β Use git to track changes
For detailed workflow and AEA compliance guidelines, run help projectinit in Stata.
@software{projectinit2026,
author = {Maykol Medrano},
title = {projectinit: Professional Stata Project Structure Initializer},
version = {2.1.0},
year = {2026},
url = {https://github.com/MaykolMedrano/projectinit}
}- Fork the repository
- Create feature branch:
git checkout -b feature/NewFeature - Commit changes:
git commit -m 'Add NewFeature' - Push:
git push origin feature/NewFeature - Open Pull Request
Built following best practices from:
- J-PAL (MIT) β Abdul Latif Jameel Poverty Action Lab
- DIME (World Bank) β Development Impact Evaluation
- AEA Data Editor β American Economic Association
- Gentzkow & Shapiro (2014) β "Code and Data for the Social Sciences"
MIT License β See LICENSE for details.
Version: 2.1.0 | Stata: 14+ | Changelog: CHANGELOG.md