Skip to content

bbdaniels/stata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stata Packages for Research

DOI License: MIT

A collection of Stata packages for research, data analysis, and visualization. Developed and maintained by Benjamin Daniels.

View Full Documentation

Installation

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 Categories

Visualization

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

Regression & Analysis

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

Summary Statistics & Tables

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

Data Management

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

Specialized Tools

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

Citation

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}
}

Contributing

Contributions are welcome! Please see the Code of Conduct and submit issues or pull requests on GitHub.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

All my code is belong to you. In Stata, do: net from https://github.com/bbdaniels/stata/raw/main/

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

 
 
 

Contributors