1---2name: aejmac-replication-package3description: "Use when assembling the data, code, and documentation package for an American Economic Journal: Macroeconomics (AEJ: Macro) manuscript to pass the AEA Data and Code Availability Policy and the AEA Data Editor's pre-publication reproducibility check. Covers macro specifics (simulation/calibration code, restricted-access data); it does not write the analysis itself."4metadata:5 source: https://skillmd.com/skills/brycewang-stanford/aejmac-replication-package6---78# Replication Package (aejmac-replication-package)910## When to trigger1112- A paper is heading toward conditional acceptance and the AEA Data Editor check is next13- You have simulation/calibration code but have never packaged it for a reviewer to run14- The data include a restricted/proprietary source (confidential micro data, licensed series)15- You want to build the package *as you go* rather than scrambling at acceptance1617## The AEA reproducibility regime (verified 2026-06; re-confirm on the official AEA pages)1819- Governed by the **AEA Data and Code Availability Policy**. Conditionally accepted papers undergo a review by the **AEA Data Editor** (Lars Vilhuber) **before publication**, including **reproducibility checks** and verification of the information provided.20- Deposit in the **AEA Data and Code Repository on openICPSR** (use is strongly encouraged; other trusted repositories may be allowed with Data Editor approval). Materials are posted with the article.21- **Code scope is broad** — and this is the macro-critical point: the policy covers data cleaning **and** "estimation, **simulation**, model solution, and **visualization**" code. For AEJ: Macro, the **DSGE/HANK solver, the calibration/estimation routines, and the simulation code must all be in the package**, not only the regression scripts.22- **Restricted-access data:** exceptions exist for confidential / copyrighted / agreement-restricted data; authors must preserve materials 5+ years, provide reasonable replication assistance, **make the code public even when the data cannot be**, and disclose data sources. State any such request to the Data Editor.23- **Field experiments** must be registered in the **AEA RCT Registry**.2425## Building a macro-grade package2627### Directory & master script28- A clear tree: `/data` (raw + analysis), `/code`, `/output` (tables + figures), `/docs`.29- One **master script** (`run_all`) that regenerates **every table and figure** from raw inputs in order, including the model solution and simulation steps.30- A **README** following the AEA template: data sources and access, software + versions, hardware, expected runtime, and a map from each exhibit to the script that makes it.3132### Macro-specific reproducibility33- **Pin the toolchain**: Stata version + `ssc`/`net` package versions; R `renv.lock`; Python `requirements.txt`/`conda env`; Julia `Project.toml`/`Manifest.toml`; **Dynare version** for DSGE.34- **Seeds** set and reported for every simulation, bootstrap, and randomization step.35- **Long-running computations** (global solutions, large HANK simulations, MCMC): provide a way to verify without a supercomputer — ship intermediate/cached outputs and a reduced-scale switch, and document expected full runtime.36- **Numerical accuracy artifacts**: include the diagnostics (Euler errors, grid checks) so the Data Editor can confirm the solution, not just rerun it.3738### Data documentation39- For each source: provider, exact extract/vintage, access date, license, and whether it is public or restricted.40- Real-time vs. revised macro vintages (e.g., ALFRED): document which you used.41- Restricted data: a clear access path and a public code subset that runs on synthetic/sample data where possible.4243## Checklist4445- [ ] openICPSR (AEA Data and Code Repository) deposit planned; README on the AEA template46- [ ] Master `run_all` regenerates every exhibit incl. model solution + simulation47- [ ] Simulation, calibration/estimation, and solver code all included (not just regressions)48- [ ] Toolchain pinned (Stata/R/Python/Julia/Dynare versions); seeds set and reported49- [ ] Long-running steps: cached outputs + reduced-scale switch + runtime documented50- [ ] Restricted data: exception request stated; code public; access path documented; 5-year retention noted51- [ ] Every data source documented (provider, vintage, access date, license)52- [ ] Field experiments registered in the AEA RCT Registry5354## Anti-patterns5556- Packaging only the regression scripts and omitting the DSGE solver / simulation code57- "Results available on request" instead of a deposited, runnable package58- Unpinned package versions, so the Data Editor cannot reproduce the numbers59- Unseeded simulations that do not reproduce60- A multi-day computation with no reduced-scale path or cached intermediates61- Discovering a data-license problem at acceptance instead of flagging it early6263## Output format6465```66【Repository】openICPSR (AEA Data and Code Repository) deposit ready? [Y/N]67【Master script】run_all regenerates all exhibits incl. model+simulation? [Y/N]68【Code scope】solver + calibration/estimation + simulation + cleaning all included? [Y/N]69【Toolchain + seeds】versions pinned; seeds reported? [Y/N]70【Restricted data】exception stated; code public; access path documented? [Y/N / NA]71【Long runs】cached outputs + reduced-scale switch + runtime noted? [Y/N / NA]72【Next step】aejmac-referee-strategy73```