Skip to content

Latest commit

 

History

History
53 lines (41 loc) · 1 KB

README.md

File metadata and controls

53 lines (41 loc) · 1 KB

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)