The ability to conduct reproducible research in Stata is often limited by the lack of version control for community-contributed packages. In this article, we introduce the require command, a tool designed to ensure package dependencies are compatible across users and computer systems. Given a list of packages, require verifies that each package is installed, checks for a minimum or exact version or package release date, and optionally installs the package if prompted by the researcher.
AndradeL.2021. Frequent reproducibility mistakes in Stata and how to avoid them. Presented at the Workshop in Reproducibility of Scientific Results. https://osf.io/wd5ah/.
BollenK.CacioppoJ. T.KaplanR. M.KrosnickJ. A.OldsJ. L.. 2015. Social, behavioral, and economic sciences perspectives on robust and reliable science. Report of the Subcommittee on Replicability in Science Advisory Committee to the National Science Foundation Directorate for Social, Behavioral, and Economic Sciences.
6.
BravoM. C.2018. gtools: Stata module to provide a fast implementation of common group commands. Statistical Software Components S458514, Department of Economics, Boston College. https://ideas.repec.org/c/boc/bocode/s458514.html.
7.
CalonicoS.CattaneoM. D.TitiunikR.. 2014. Robust data-driven inference in the regression-discontinuity design. Stata Journal14: 909–946. https://doi.org/10.1177/1536867X1401400413.
8.
CorreiaS.2014. reghdfe: Stata module to perform linear or instrumental-variable regression absorbing any number of high-dimensional fixed effects. Statistical Software Components S457874, Department of Economics, Boston College. https://ideas.repec.org/c/boc/bocode/s457874.html.
DIME Analytics. 2024. repkit: Package providing a utility toolkit for reproducibility best-practices. GitHub. https://github.com/worldbank/repkit/.
11.
GoldembergD.2021. dependencies: Stata module to manage required user-written commands (ado version freeze). Statistical Software Components S458900, Department of Economics, Boston College. https://ideas.repec.org/c/boc/bocode/s458900.html.
12.
GuimaraesP. 2023. Reproducibility with confidential data: The experience of BPLIM. Harvard Data Science Review5(3). 10.1162/99608f92.54a00239.
13.
HaghishE. F. 2016. markdoc: Literate programming in Stata. Stata Journal16: 964–988. https: //doi.org/10.1177/1536867X1601600409.
14.
_____. 2020. Developing, maintaining, and hosting Stata statistical software on GitHub. Stata Journal20: 931–951. 10.1177/1536867X20976323.
15.
HerbertS.KingiH.StanchiF.VilhuberL.. 2021. The reproducibility of economics research: A case study. Working Paper Series853, Banque de France. https://publications.banque-france.fr/en/reproducibility-economics-research-case-study.
16.
JannB. 2005. Making regression tables from stored estimates. Stata Journal5: 288–308. 10.1177/1536867X0500500302.
The Turing Way Community. 2022. The Turing Way: A handbook for reproducible, ethical and collaborative research. https://doi.org/10.5281/zenodo.7625728.
26.
WadaR.2005. outreg2: Stata module to arrange regression outputs into an illustrative table. Statistical Software Components S456416, Department of Economics, Boston College. https://ideas.repec.org/c/boc/bocode/s456416.html.