Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lsys/stata-utils

Miscellaneous Stata ado utility programs for data analysis work.
https://github.com/lsys/stata-utils

stata

Last synced: 9 days ago
JSON representation

Miscellaneous Stata ado utility programs for data analysis work.

Awesome Lists containing this project

README

        

## Stata utilities

My Stata miscellaneous `.ado` programs I use.

Pull into my local project directory:
```Bash
cd

git clone https://github.com/LSYS/stata-utils.git
```

Then in the relevant/master `do` file, add:
```Stata
adopath ++ ./stata-utils
```
or
```Stata
adopath ++ /stata-utils
```

## Programs

* `setup.ado` sets up multiple required packages.

Simple example:
```Stata
local req reghdfe coefplot addplot
setup "`req'"
```


Example with a stata-requirements.txt.

stata-requirements.txt as an example plain text file:
```text
reghdfe
coefplot
addplot
```

Read `stata-requirements.txt` into local macro
```Stata
txt2macro stata-requirements.txt
local req `r(mymacro)'
```

and install packages listed in `stata-requirements.txt`
```Stata
setup "`req'"
```


(Works like `pip install -r requirements.txt`)