Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge adodown setup to main #365

Merged
merged 74 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
a8b4b20
ignore dev-env folder
kbjarkefur Feb 19, 2024
c1370d9
iebaltab: no reason to require numeric cluster var
kbjarkefur Feb 19, 2024
0113159
use repado to set up dev environment
kbjarkefur Feb 19, 2024
d464261
update comment
kbjarkefur Feb 19, 2024
dd256e3
remove project file
kbjarkefur Feb 26, 2024
8a202f7
remove iedorepfiles - moved to reprun in repkit
kbjarkefur Feb 26, 2024
03ffce5
apply repado and reproot to all test files
kbjarkefur Feb 26, 2024
38a9698
expected output changes
kbjarkefur Feb 26, 2024
0bb439d
fixes things migrating to repkit broke
kbjarkefur Feb 26, 2024
2dde05c
one more expected output change
kbjarkefur Feb 26, 2024
842355a
move order on dev-env and ietoolkit
kbjarkefur Feb 26, 2024
445ab3b
indent cleaning
kbjarkefur Feb 26, 2024
e1032ff
change ieboilstart as adopath is moved to repado
kbjarkefur Feb 26, 2024
9d4567d
uncommet until investigating data diff
kbjarkefur Feb 26, 2024
bbd8070
un-ignore the reproot file
kbjarkefur Feb 29, 2024
63f2abe
Merge pull request #359 from worldbank/use-repkit
kbjarkefur Apr 4, 2024
417074f
remove old structure
kbjarkefur Apr 4, 2024
19d66b3
set up all files
kbjarkefur Apr 4, 2024
50d25bf
remove iedorep
kbjarkefur Apr 4, 2024
3839db0
add comment to reproot file
kbjarkefur Apr 4, 2024
3288245
copy ado-file
kbjarkefur Apr 4, 2024
ed693a9
add ietoolkit command helpfiles
kbjarkefur Apr 4, 2024
bd5e96f
add adorunfile
kbjarkefur May 13, 2024
e5359c3
adofile
kbjarkefur May 13, 2024
bdbd309
mdhlp-file
kbjarkefur May 13, 2024
77195cc
All but tables works
kbjarkefur May 13, 2024
dc09445
missing underscore
kbjarkefur May 20, 2024
d697a47
updates after _one_two_ is supported and non-syntax tables
kbjarkefur May 20, 2024
e8e3e1a
Merge branch 'iebaltab' into iesave
kbjarkefur May 20, 2024
ade2a32
add ado file
kbjarkefur May 23, 2024
c6a8f02
add iegitaddmd helpfile
kbjarkefur May 23, 2024
dab7fdc
Merge branch 'iegitaddmd' into adodown
kbjarkefur May 23, 2024
3682ef6
updates to file after adodown v2.0
kbjarkefur May 23, 2024
d8000e3
add ado files
kbjarkefur May 24, 2024
b0d59cf
small typo
kbjarkefur May 24, 2024
a291f7c
add iedropone helpfile
kbjarkefur May 24, 2024
34bb1b6
Merge branch 'iedropone' into adodown
kbjarkefur May 24, 2024
4d83931
add the ado file
kbjarkefur May 27, 2024
f97e072
convert iegraph helpfile to mdhlp
kbjarkefur May 27, 2024
ce30b9c
Merge branch 'iegraph' into adodown
kbjarkefur May 27, 2024
1bc5bb5
add dime wiki link
kbjarkefur May 27, 2024
2ea1110
Update iekdensity.ado
ankritisingh May 29, 2024
d6ea626
Add: md for ieddtab - WIP
mariarrt94 May 29, 2024
4a4b301
helpfiles for iekdensity
ankritisingh May 29, 2024
27cba8d
Updating help files
ankritisingh May 29, 2024
8bd8477
Update ieddtab.ado
ankritisingh May 29, 2024
4553a66
Update iesave.ado
ankritisingh May 29, 2024
d66fa0b
Updating help files
ankritisingh May 29, 2024
c3fcf23
Merge pull request #363 from worldbank/iesave
kbjarkefur May 30, 2024
5ad57e1
Merge pull request #362 from worldbank/ieddtab
kbjarkefur May 30, 2024
a004810
use 2 level title instead of bold
kbjarkefur May 30, 2024
779e65b
use level 2 title instead of bold
kbjarkefur May 30, 2024
293e5e3
Merge pull request #361 from worldbank/iekdensity
kbjarkefur May 30, 2024
a303b9f
ieboilstart setup
ankritisingh May 14, 2024
0ae3c79
updating sthlp
ankritisingh May 28, 2024
7f12940
Update iematch.ado
ankritisingh May 30, 2024
68f47d6
Updating help files
ankritisingh May 30, 2024
c276b9a
update ieboilstart with new adodown verison
kbjarkefur Jun 6, 2024
1ee78a2
Merge pull request #360 from worldbank/ieboilstart
kbjarkefur Jun 6, 2024
f29db92
Merge pull request #364 from worldbank/iematch
kbjarkefur Jun 6, 2024
d1cd2bf
add adofile
kbjarkefur Jun 6, 2024
e91e8e8
iefolder mdhlp and sthlp
kbjarkefur Jun 6, 2024
776b048
Merge branch 'iefolder' into adodown
kbjarkefur Jun 6, 2024
599170b
remove ieboilsave
kbjarkefur Jun 10, 2024
d6bdf23
Merge branch 'ieboilsave' into adodown
kbjarkefur Jun 10, 2024
0d268da
update helpfiles
kbjarkefur Jun 10, 2024
0c45791
adpublish update
kbjarkefur Jun 10, 2024
473084d
adupdate sthlp files
kbjarkefur Jun 10, 2024
f1b1c09
push clearn version of run adodown util
kbjarkefur Jun 10, 2024
6631607
update GH action deployment settings
kbjarkefur Jun 17, 2024
8f7e1a1
Merge branch 'adodown' into dev
kbjarkefur Jun 17, 2024
a2d90f3
move extra text out of title section
kbjarkefur Jun 17, 2024
0ba2af6
fix typo and placeholder text
kbjarkefur Jun 27, 2024
5c811cc
create content table for webdocs
kbjarkefur Jun 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .gitattributes

This file was deleted.

71 changes: 71 additions & 0 deletions .github/workflows/build_adodown_site.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
on:
push:
branches: [main, dev]

name: Build Site

jobs:
adodownr:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:

- name: Checkout project
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Pages
id: pages
uses: actions/configure-pages@v3

- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- name: Install Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
version: 1.0.37

- name: Install dependencies
run: |
sudo apt-get install -y make libcurl4-openssl-dev libssl-dev libfontconfig1-dev libfreetype6-dev libfribidi-dev libharfbuzz-dev libjpeg-dev libpng-dev libtiff-dev libicu-dev pandoc libxml2-dev libgit2-dev libssh2-1-dev zlib1g-dev git

- name: Install devtools
run: install.packages("devtools")
shell: Rscript {0}

- name: Install adodownr
run: devtools::install_github("lsms-worldbank/adodownr")
shell: Rscript {0}

- name: Install here
run: install.packages("here")
shell: Rscript {0}

- name: Build site
run: adodownr::build_site(pkg_dir = here::here(), site_dir = here::here())
shell: Rscript {0}

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./docs

deploy:
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
runs-on: ubuntu-latest
needs: adodownr
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
58 changes: 26 additions & 32 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
########################################################################
#
# This .gitignore file is based on DIME's template
# https://github.com/worldbank/DIMEwiki/tree/master/Topics/GitHub
# Created using adodown https://lsms-worldbank.github.io/adodown/, based on DIME .gitignore template:
# https://github.com/worldbank/dime-github-trainings/tree/main/GitHub-resources/DIME-GitHub-Templates
#
########################################################################

Expand All @@ -17,13 +17,18 @@
# These files include GitHub settings
!.gitignore
!.gitattributes
#.io page
_config.yml
!.github/**/*.yaml

# Git placeholder file (to commit empty folders)
!/**/*.gitkeep

# Keep markdown files used for documentation on GitHub
!README.md
!CONTRIBUTING.md
!LICENSE
!LICENSE*

* Unignore reproot files
!reproot*.yaml

#######################
# For performance reasons, if a folder is already ignored, then
Expand All @@ -35,39 +40,28 @@ _config.yml

#######################
# The following file types are code that should always be
# included no matter where in the DataWork folder they are
# located unless that folder is explicitly ignored. See example
# with EncryptedData folder below.
# included no matter where in the repository folder they are
# located unless you explicitly ignore that folder

# Stata
!/**/*.do
!/**/*.ado
!/**/*.sthlp
!/**/*.stpr

# R
!/**/*.R

# Outputs
!/**/*.tex
!/**/*.csv

# Python
!/**/*.py

# Matlab
!/**/*.m
!/**/sthlp/*.sthlp
!src/stata.toc
!src/*.pkg

# Markdown
# Markdown and web docs files
!/**/*.md
!src/dev/**/*.png
!src/dev/**/*.css

# The folder test/ is used for peoples individual testing,
# this is different from the test scripts in the folder run/
test/
####################################
# Ignore ssc outputs
src/dev/ssc

###########
# Outputs in the run/outputs folder
!/**/outputs/**/*.csv
# Ignore test inputs and outputs
src/tests/**/inputs/
src/tests/**/outputs/

# ignore all iegitaddmd output, results tested with checksums
/**/iegitaddmd/outputs/
* Ignore the local dev env set up by repado
src/tests/dev-env/
33 changes: 20 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
**ietoolkit - Stata Commands for Impact Evaluations**
=====

### Content

### **Content**
**ietoolkit** provides a set of commands that address different aspects of data management and data analysis in relation to Impact Evaluations. The list of commands will be extended continuously, and suggestions for new commands are greatly appreciated. Some of the commands are related to standardized best practices developed at DIME (The World Bank’s unit for Impact Evaluations). For these commands, the corresponding help files provide justifications for the standardized best practices applied.


| Command | Description |
| --- | --- |
| [iebaltab](https://worldbank.github.io/ietoolkit/reference/iebaltab.html) | Produces balance tables with multiple groups or treatment arms |
| [ieboilstart](https://worldbank.github.io/ietoolkit/reference/ieboilstart.html) | Applies best practices for collaboration and reproducibility within a project |
| [ieddtab](https://worldbank.github.io/ietoolkit/reference/ieddtab.html) | This command runs a Diff-in-Diff regression and displays the baseline values, the two 1st differences and the 2nd difference |
| [iedropone](https://worldbank.github.io/ietoolkit/reference/iedropone.html) | An extension of the command `drop` with features preventing additional observations are unintentionally dropped |
| [iefolder](https://worldbank.github.io/ietoolkit/reference/iefolder.html) | Sets up project folders and master do-files according to World Bank DIME's standards |
| [iegitaddmd](https://worldbank.github.io/ietoolkit/reference/iegitaddmd.html) | Creates a placeholder file in subfolders of a GitHub repository folder, which allows committing folder structures with empty folders |
| [iegraph](https://worldbank.github.io/ietoolkit/reference/iegraph.html) | Generates graphs based on regressions with treatment dummies common in impact evaluations |
| [iekdensity](https://worldbank.github.io/ietoolkit/reference/iekdensity.html) | This command plots univariate kernel density estimates by treatment assignment |
| [iematch](https://worldbank.github.io/ietoolkit/reference/iematch.html) | Matching base observations towards target observations using on a single continuous variable |
| [iesave](https://worldbank.github.io/ietoolkit/reference/iesave.html) | Applies best practices before saving data, with option to save meta data report about the data saved |
| [ietoolkit](https://worldbank.github.io/ietoolkit/reference/ietoolkit.html) | Returns information on the version of `ietoolkit` installed |

### **Install and Update**

#### Installing published versions of `ietoolkit`
Expand Down Expand Up @@ -30,19 +50,6 @@ An easy but still very efficient way to provide any feedback on these commands i

While we have a slight preference for receiving feedback here on GitHub, you are still very welcome to send a regular email with your feedback to [dimeanalytics@worldbank.org](mailto:dimeanalytics@worldbank.org).

### **Content**
**ietoolkit** provides a set of commands that address different aspects of data management and data analysis in relation to Impact Evaluations. The list of commands will be extended continuously, and suggestions for new commands are greatly appreciated. Some of the commands are related to standardized best practices developed at DIME (The World Bank’s unit for Impact Evaluations). For these commands, the corresponding help files provide justifications for the standardized best practices applied.

- **ietoolkit** returns meta info on the version of _ietoolkit_ installed. Can be used to ensure that the team uses the same version.
- **iebaltab** is a tool for multiple treatment arm balance tables
- **ieddtab** is a tool for difference-in-difference regression tables
- **ieboilstart** standardizes the boilerplate code at the top of all do-files
- **iefolder** sets up project folders and master do-files according to DIME's recommended folder structure
- **iegitaddmd** adds placeholder README.md files to all empty subfolders allowing them to be synced on GitHub
- **iematch** is an algorithm for matching observations in one group to the "most similar" observations in another group
- **iegraph** produces graphs of estimation results in common impact evaluation regression models
- **iedropone** drops observations and controls that the correct number was dropped
- **ieboilsave** performs checks before saving a data set

### **Contributions**
If you are not familiar with GitHub see the **Bug reports and feature requests** section above for a less technical but still very helpful way to contribute to **ietoolkit**.
Expand Down
105 changes: 0 additions & 105 deletions admin/checklist-submitting-SSC.md

This file was deleted.

Loading
Loading