Stata utilities
My Stata miscellaneous .ado programs I use.
Pull into my local project directory:
cd <project_path>
git clone https://github.com/LSYS/stata-utils.git
Then in the relevant/master do file, add:
adopath ++ ./stata-utils
or
adopath ++ <project_path>/stata-utils
Programs
setup.ado sets up multiple required packages.
Simple example:
local req reghdfe coefplot addplot
setup "`req'"
Example with a stata-requirements.txt.
stata-requirements.txt as an example plain text file:
reghdfe
coefplot
addplot
Read stata-requirements.txt into local macro
txt2macro stata-requirements.txt
local req `r(mymacro)'
and install packages listed in stata-requirements.txt
setup "`req'"
(Works like pip install -r requirements.txt)
Source: https://github.com/LSYS/stata-utils