This repository contains code and data to reproduce the accepted manuscript of the paper
Held, L., Micheloud, C. & Pawel, S. The assessment of replication success based on relative effect size. The Annals of Applied Statistics. 16(2) 706-720. doi:10.1214/21-AOAS1502
We offer two ways to reproduce the results
First install the required R packages by running in a shell from the root directory of the repository
## packages
R -e 'install.packages(read.delim("CRANpackages.txt", header = FALSE)[,1])'
cd packages
R CMD INSTALL biostatUZH_1.8.0.tar.gz
R CMD INSTALL ReplicationSuccess_0.1-4.tar.gz
Then run
cd paper
make pdf
this should reproduce all analyses and output the file rsgolden.pdf
in the
paper directory.
Although our analysis depends on only few dependencies, this approach may lead to different results (or not even compile successfully) in the future if R or an R package dependency changes. The R and R package versions which were used in our analysis can be seen in the output of the sessionInfo command at the bottom of the manuscript in the snapshot of the GitHub repository at the time of submission.
Run in a shell from the root directory of the repository
make drunpdf
this should output the file rsgolden.pdf
in the paper directory. The Docker
approach takes a bit longer but reruns our analyses in a Docker container which
encapsulates the computational environment (R and R package versions) that was
used in the original analysis. The only way this approach could become
irreproducible is when the rocker/verse
base image becomes unavailable and/or the MRAN snapshot of CRAN becomes
unavailable.