diff --git a/.github/workflows/binder.yml b/.github/workflows/binder.yml new file mode 100644 index 0000000..dd01b9e --- /dev/null +++ b/.github/workflows/binder.yml @@ -0,0 +1,12 @@ +name: Build and Deploy Binder Image Currently for Latex Guide +on: [push] + +jobs: + Create-MyBinderOrg-Cache: + runs-on: ubuntu-latest + steps: + - name: cache binder build on mybinder.org + uses: jupyterhub/repo2docker-action@master + with: + NO_PUSH: true + MYBINDERORG_TAG: ${{ github.event.ref }} # This builds the container on mybinder.org with the branch that was pushed on. diff --git a/.gitignore b/.gitignore index b95cddd..4c4bac4 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ .DS_Store */*_cache* *settings.dcf +R-dev/ diff --git a/Makefile b/Makefile index 7f8f6a6..10da2f0 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,7 @@ all: adaptive/adaptive.html \ meta-analysis/meta-analysis.html \ missing_data/missing_data.html \ multiple-comparisons/multiple-comparisons.html \ + multisite/multisite.html \ null/null_results.html \ pap/pap.html \ pilots/10_things_to_know_about_pilots.html \ @@ -106,6 +107,9 @@ missing_data/missing_data.html: missing_data/missing_data.Rmd multiple-comparisons/multiple-comparisons.html: multiple-comparisons/multiple-comparisons.Rmd Rscript -e "rmarkdown::render('./multiple-comparisons/multiple-comparisons.Rmd')" +multisite/multisite.html: multisite/multisite.Rmd multisite/refs.bib + Rscript -e "rmarkdown::render('./multisite/multisite.Rmd')" + null/null_results.html: null/null_results.Rmd Rscript -e "rmarkdown::render('./null/null_results.Rmd')" diff --git a/NotUsedDockerfile b/NotUsedDockerfile new file mode 100644 index 0000000..95ec8e3 --- /dev/null +++ b/NotUsedDockerfile @@ -0,0 +1,23 @@ +# Trying this approach with a pre-build Docker image +# following https://mybinder.readthedocs.io/en/latest/tutorials/dockerfile.html +# Note that there must be a tag +FROM jwbowers/methods-guides:d177a56ed870 + +ARG NB_USER=jovyan +ARG NB_UID=1000 +ENV USER ${NB_USER} +ENV NB_UID ${NB_UID} +ENV HOME /home/${NB_USER} + +RUN adduser --disabled-password \ + --gecos "Default user" \ + --uid ${NB_UID} \ + ${NB_USER} + +# Make sure the contents of our repo are in ${HOME} +COPY . ${HOME} +USER root +RUN chown -R ${NB_UID} ${HOME} +USER ${NB_USER} + +RUN python3 -m pip install --no-cache-dir notebook jupyterlab diff --git a/hte/heteffects.Rmd b/hte/heteffects.Rmd index 9f79545..5eb4556 100644 --- a/hte/heteffects.Rmd +++ b/hte/heteffects.Rmd @@ -287,7 +287,7 @@ FDR control tends to be less conservative than FWER control and is popular in fi 8 Use a Pre-Analysis Plan To Reduce the Number of Hypothesis Tests == -You can also reduce the numbers of CATEs and interactions under consideration for hypothesis testing by pre-specifying the tests of primary interest in a registered pre-analysis plan (PAP). Additional subgroup analyses can be conceptualized and specified as exploratory or descriptive analyses in the PAP. Another bonus is that if you prefer a one-sided test, you can commit to that choice in the PAP before seeing the outcome data, so that you "cannot be justly accused of cherry-picking the test after the fact" (Olken 2015).^[Benjamin A. Olken (2015), "Promises and Perils of Pre-Analysis Plans," _Journal of Economic Perspectives_ 29(3): 61--80.] +You can also reduce the numbers of CATEs and interactions under consideration for hypothesis testing by pre-specifying the tests of primary interest in a registered pre-analysis plan (PAP). Additional subgroup analyses can be conceptualized and specified as exploratory or descriptive analyses in the PAP. Another bonus is that if you prefer a one-sided test, you can commit to that choice in the PAP before seeing the outcome data, so that you "cannot be justly accused of cherry-picking the test after the fact" (Olken 2015).^[Benjamin A. Olken (2015), "Promises and Perils of Pre-Analysis Plans," _Journal of Economic Perspectives_ 29(3): 61--80.] See our guide [10 Things to Know About Pre-Analysis Plans](https://egap.org/resource/10-things-to-know-about-pre-analysis-plans/) for more on pre-registration. 9 Automate the Search for Interactions == diff --git a/hte/heteffects.html b/hte/heteffects.html index bb3a3c8..f4c3d74 100644 --- a/hte/heteffects.html +++ b/hte/heteffects.html @@ -266,6 +266,7 @@ + - + + - - - - + + + + - - + + - - - + + + + - - + +