EconPapers    
Economics at your fingertips  
 

repkit: Tools for reproducible coding

Kristoffer Bjärkefur (), Benjamin Daniels, Luis Eduardo San Martín () and Ankriti Singh ()
Additional contact information
Kristoffer Bjärkefur: World Bank
Luis Eduardo San Martín: World Bank
Ankriti Singh: World Bank

Stata Journal, 2025, vol. 25, issue 4, 699-718

Abstract: Writing Stata code that produces the same results on another user’s machine is an essential component of modern reproducible data analysis work- flows. However, a number of reasons may make it difficult to do so without detailed knowledge of the recipient’s environment. For example, differences be- tween installation of (third-party) community-contributed files may cause failures. Furthermore, even when the environment is not an issue, users may make er- rors 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.

Keywords: repkit; reproot; repado; reprun; lint; linter; ado-files; root paths; directory paths; reproducibility (search for similar items in EconPapers)
Date: 2025
Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj25-4/st0788/
References: Add references at CitEc
Citations:

Downloads: (external link)
http://www.stata-journal.com/article.html?article=st0788 link to article purchase

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:tsj:stataj:v:25:y:2025:i:4:p:699-718

Ordering information: This journal article can be ordered from
http://www.stata-journal.com/subscription.html

DOI: 10.1177/1536867X251398246

Access Statistics for this article

Stata Journal is currently edited by Nicholas J. Cox and Stephen P. Jenkins

More articles in Stata Journal from StataCorp LLC
Bibliographic data for series maintained by Christopher F. Baum () and Lisa Gilmore ().

 
Page updated 2025-12-05
Handle: RePEc:tsj:stataj:v:25:y:2025:i:4:p:699-718