iedorep: Quickly locate reproducibility failures in Stata code
Benjamin Daniels
2023 Stata Conference from Stata Users Group
Abstract:
iedorep is a new Stata command in DIME Analytics ietoolkit package to check reproducibility of each line of Stata do-files. First, iedorep takes a single do-file as an argument, runs it, and stores the Stata state after each line executes. This includes the current data signature, the state of the RNG, and the state of the sort RNG. Then, it runs the do-file again, checking the state at all the same points. Finally, it reports exactly which lines (if any) have produced unstable states — quickly and accurately identifying hard-to-find reproducibility failures. This presentation will cover potential ways of using iedorep. We will discuss how it detects reproducibility errors, how it provides an efficient way to debug and check reproducibility of Stata code, and how it encourages users to write more accessible code. We will also explore how iedorep can be used in workshops and teaching activities and how it can serve as an important tool in research teams to review code and ensure project reproducibility. Finally, we will highlight areas for improvement and development challenges, such as within-loop implementation and recursive use in projects that use run or do to manage subtasks.
Date: 2023-07-29
References: Add references at CitEc
Citations:
Downloads: (external link)
http://repec.org/usug2023/US23_Daniels.pptx
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:boc:usug23:02
Access Statistics for this paper
More papers in 2023 Stata Conference from Stata Users Group Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().