/jape-skills:jape-data-analysisfrom jape-skills
Guides reproducible estimation and inference for Journal of Applied Econometrics manuscripts. Covers master-script discipline, robust inference (HAC, clustered, bootstrap), Monte Carlo evidence, and JAE Data Archive plain-text/CSV format requirements.
Ships in jape-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
JAE's identity is replicable applied work, and accepted papers must deposit data and (typically) programs in the JAE Data Archive. Structure the analysis as if a referee will rerun it:
run_all.do / make / Snakefile) regenerates every exhibit from raw inputs — no manual steps.version in Stata, renv/sessionInfo() in R, pinned requirements.txt in Python); fix and log all seeds..dta be the only copy.Match inference to structure: HAC/Newey–West for serial correlation; cluster-robust SEs for panels; wild/cluster bootstrap with few clusters; weak-IV-robust inference for IV. State which adjustment you use and why.
If you stress-test a method, report the DGP, sample sizes, replication count, and seeds, and ship the simulation script so the tables regenerate exactly. Simulations should illuminate the empirical problem, not stand alone.
Before submission, create a ledger with one row per main claim:
Claim | Exhibit | Input data | Code target | Inference choice | Archive file
Use it to catch unsupported claims and archive gaps. If a row has no code target, the exhibit is not reproducible. If a row has no inference rationale, a referee can challenge the standard errors before engaging the economics. If a row has no archive file, the Data Archive package will not reproduce the published paper.
The ledger also clarifies what belongs in the online appendix: diagnostics and robustness checks that support a ledger row should be preserved there, even if the main article cannot spare space.
JAE referees rerun your code, so the inference choice must be defensible and visible in the deposited scripts. Default mapping:
| Data structure | Expected inference at JAE | What the table note states |
|---|---|---|
| Time series, serial correlation | HAC / Newey–West; justify bandwidth/lag choice | Kernel, lag truncation, sample span |
| Panel, many clusters (≈40+) | Cluster-robust at the treatment/assignment level | Cluster variable and count |
| Panel, few clusters (<~30) | Wild cluster bootstrap (Rademacher/Webb weights) | Bootstrap type, replications, seed |
| IV with modest first stage | Weak-IV-robust (Anderson–Rubin CI; effective F) | First-stage F alongside the 2SLS column |
| Forecast comparisons | Diebold–Mariano-style tests with HAC variance | Loss function and comparison window |
Two inference failures recur in JAE referee reports: cluster-robust SEs treated as valid with a handful of clusters, and 2SLS t-statistics reported without weak-IV diagnostics. Pre-empt both — report the cluster count in every clustered table, switch to wild cluster bootstrap p-values when it is small, and pair any IV column with the effective first-stage F plus an Anderson–Rubin interval. Put the bootstrap loop in the deposited code with its seed so the archived p-value regenerates digit-for-digit.
A staggered state-policy evaluation with 13 treated-side clusters: CRVE gives β = −0.042, s.e. 0.018, p ≈ 0.02; the wild cluster bootstrap (Webb weights, 9,999 draws, seed logged) gives p ≈ 0.08. The JAE-grade move is to report both, lead with the bootstrap, and let the online appendix carry the full grid (weight choice, replications, leave-one-cluster-out). The archived infer_main.do regenerates each p-value; the readme names the seed. Hiding the fragile p-value is the move referees at this venue are trained to catch.
When simulation evidence backs the empirical design, register it like an exhibit:
DGP: [equations + parameter values, calibrated to the application]
Sample sizes: [matching the real data, plus stress values]
Replications: [count] | Seed: [value] | Software: [version]
Script: sims/mc_main.R → outputs tables/mc_table3.csv
Question answered: [which empirical inference concern this resolves]
Run the battery, don't just enumerate it. Full map:
execution-with-mcp. Applied econometrics: the estimator and its diagnostics are themselves the contribution, so foreground the weak-IV / pre-trend / sensitivity tooling.
romano_wolf (step-down FWER, accounts for
cross-test correlation) or benjamini_hochberg — report the adjusted threshold.oster_delta / sensemakr — the confounder strength that would
overturn the headline.wild_cluster_bootstrap (few clusters), twoway_cluster / conley.audit_result(result_id) lists the missing checks and the
exact suggest_function for each — no guessing the battery.etable / did_summary_to_latex from the handle — no retyped numbers.Keep the decisive checks in the body and the exhaustive (now actually-run) battery in the appendix. See the executed chain in the JF execution walkthrough.
【Master script】regenerates all exhibits? [Y/N]
【Repro】versions pinned + seeds fixed? [Y/N]
【Inference】HAC / clustered / bootstrap / weak-IV — matched? [Y/N]
【Few-cluster guard】cluster counts reported; bootstrap where small? [Y/N]
【Archive format】plain CSV + readme alongside (not .dta-only)? [Y/N]
../../resources/external_tools.md — estimation, inference, reproducibility tooling../../resources/official-source-map.md — archive format-rule sourcesWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
reproducible-research, econometrics, jae-archive, inference, monte-carlo
12 skills in this plugin
/jape-contribution-framingUse when framing the headline contribution of a Journal of Applied Econometrics (JAE) manuscript — as an empirical application on real data whose results are replicable, rather than a pure-theory advance. Calibrates claims to what the data and design support and compresses into the 100-word summary./jape-identification-strategyUse when designing or defending the empirical identification of a Journal of Applied Econometrics (JAE) manuscript — a credible strategy applied to real data, with assumptions stated, tested, and reproducible. Covers time-series, panel, IV, and quasi-experimental designs typical of applied econometrics, tying every claim to depositable evidence./jape-literature-positioningUse when positioning a Journal of Applied Econometrics (JAE) manuscript against prior work — applied-econometrics precedent, the methods you apply, and JAE's own corpus and Data Archive of replicable papers. Frames the gap as an application/replication advance under JAE's citation-style-agnostic Free Format./jape-rebuttalUse when drafting the response letter for a Journal of Applied Econometrics (JAE) revise-and-resubmit — replying to single-blind anonymous referees and the Editor-in-Chief on applied-econometrics objections (identification on real data, inference, robustness) while keeping the JAE Data Archive package in sync with every revised result./jape-replication-and-data-policyUse when assembling the mandatory JAE Data Archive deposit for an accepted Journal of Applied Econometrics paper — plain-ASCII/CSV data with a readme, the programs that replicate every result, and the confidential-data exception. Encodes the archive's actual format rules (no bare .dta/SAS) and its history (Queen's 1994–2022, now ZBW)./jape-review-processUse when navigating the Journal of Applied Econometrics (JAE) editorial process — single-blind peer review by anonymous reviewers in addition to the Editor, with final accept/reject authority vested in the Editor-in-Chief, plus the three-papers-under-review cap and the rule that rejected papers are not resubmittable unless invited.npx claudepluginhub brycewang-stanford/awesome-journal-skills --plugin jape-skillsOther plugins' skills for the same job