repkit: Tools for reproducible coding
Writing Stata code that produces the same results on another user’s machine is an essential component of modern reproducible data analysis workflows. However, a number of reasons may make it difficult to do so without detailed knowledge of the recipient’s environment. For example, differences between installation of (third-party) community-contributed files may cause failures. Furthermore, even when the environment is not an issue, users may make errors regarding random-number generation in the Stata code. These issues can be very challenging to detect from the code output alone. The repkit package provides new tools to automate: the location of root file paths; the configuration of community-contributed command installations; “linting” of the Stata code for readability; and the precise detection of code issues affecting reproducibility.
Authors
- Laura Martín (ORCID: https://orcid.org/0000-0002-6583-8731)
- Benjamin Daniels (ORCID: https://orcid.org/0000-0001-9652-6653)
- Kristoffer Bjärkefur
- Awadhesh N. Singh (ORCID: https://orcid.org/0009-0008-1231-9402)
Institutions
- Harvard University (US)
- World Bank Group (US)
Publication Details
- Journal
- The Stata Journal Promoting communications on statistics and Stata
- Published
- 2025-12-01
- DOI
- https://doi.org/10.1177/1536867x251398246
- Primary Topic
- Probability and Statistical Research
- Type
- article
- Field-Weighted Citation Impact
- 0.00