A collection of Stata packages for research, data analysis, and visualization. Developed and maintained by Benjamin Daniels.
Install any package directly from this repository using Stata's net install:
net install packagename, from("https://raw.githubusercontent.com/bbdaniels/stata/main/")For example:
net install forest, from("https://raw.githubusercontent.com/bbdaniels/stata/main/")| Package | Description |
|---|---|
| betterbar | Bar graphs with standard error bars and cross-group comparisons |
| forest | Forest plots visualizing results from multiple regressions |
| bstrappoly | Bootstrapped confidence intervals for local polynomial regression |
| Package | Description |
|---|---|
| outwrite | Export regression results to Excel, CSV, or LaTeX |
| crossfold | K-fold cross-validation for model evaluation |
| manski | Manski bounds for selection bias |
| rctreg | RCT regression tables with treatment/control means |
| easyirt | Easy Item Response Theory estimation |
| specc | Specification curve analysis automation |
| bivreg | Bivariate regression tables |
| reftab | Summary statistics and regression results by category |
| Package | Description |
|---|---|
| sumstats | Summary statistics tables with conditional restrictions |
| tabstatout | Summary statistics tables with export capability |
| weightab | Weighted cross-group comparison tables |
| statflow | Dynamic flowcharts and tables in Excel |
| Package | Description |
|---|---|
| freeshape | Flexible reshape without numbered variable stubs |
| labelcollapse | Collapse data while preserving variable labels |
| makeid | Generate unique hierarchical IDs |
| tabgen | Split categorical variables into labeled binaries |
| rencode | Encode string variables in place |
| strprop | Case formatting for string variables |
| dayofweek | Generate labeled day-of-week variables |
| anycat | Create indicators from categorical variable sets |
| multicat | Compile indicators into descriptive strings |
| Package | Description |
|---|---|
| knapsack | 0/1 Knapsack Problem solver |
| txt2qr | Generate QR codes from text |
| dta2kml | Export data to KML for geographic visualization |
| devkit | Developer toolkit with utility functions |
If you use these packages in your research, please cite:
@software{daniels_stata_packages,
author = {Benjamin Daniels},
title = {Stata Packages for Research},
year = {2024},
publisher = {Zenodo},
doi = {10.5281/zenodo.6263355},
url = {https://doi.org/10.5281/zenodo.6263355}
}Contributions are welcome! Please see the Code of Conduct and submit issues or pull requests on GitHub.
This project is licensed under the MIT License - see the LICENSE file for details.