[go: up one dir, main page]

Skip to content

Miscellaneous Stata ado utility programs for data analysis work.

License

Notifications You must be signed in to change notification settings

LSYS/stata-utils

Repository files navigation

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)

About

Miscellaneous Stata ado utility programs for data analysis work.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages