cacheit: A generalized mechanism for storing and replaying any Stata command
In this article, we describe the command cacheit, which caches the full output of any Stata command to the disk, allowing for the output to be easily recovered in the future without recomputing the command. cacheit can cache any elements returned by official Stata or community-contributed commands, including matrices, scalars, graphs, data and frames, and command output itself. cacheit is useful for improving programming practices and efficiency, particularly when underlying Stata commands are computationally intensive and slow to run.
Authors
- Damian Clarke (ORCID: https://orcid.org/0009-0000-9113-2188)
- R. Andrés Castañeda
Institutions
- Universidad de Santiago de Chile (CL)
- World Bank (US)
- World Bank Group (US)
- Universidad de Chile (CL)
Publication Details
- Journal
- The Stata Journal Promoting communications on statistics and Stata
- Published
- 2026-11-30
- DOI
- https://doi.org/10.1177/1536867x261508232
- Primary Topic
- Data Analysis with R
- Type
- article
- Field-Weighted Citation Impact
- 0.00