Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/lsys/stata-utils
- Owner: LSYS
- License: mit
- Created: 2021-03-28T09:40:22.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-06T04:03:39.000Z (6 months ago)
- Last Synced: 2024-10-06T02:07:44.189Z (3 months ago)
- Topics: stata
- Language: Stata
- Homepage:
- Size: 49.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Stata utilities
My Stata miscellaneous `.ado` programs I use.
Pull into my local project directory:
```Bash
cdgit 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`)