技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
red-data-analysis【数据与研究】Use when building or auditing the quantitative analysis behind a Review of Economic Dynamics (RED) manuscript — calibration, moment-matching, structural estimation, and numerical-solution discipline for dynamic models, plus reproducible-computation hygiene that the RED code-first culture expects. Lighter on raw empirics for purely theoretical papers;…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
RED is method-defined, so "data analysis" usually means disciplining a dynamic model, and for purely theoretical papers it is lighter — focus there on numerical examples and reproducible computation that illustrate the result rather than estimate it.
Run the battery, don't just enumerate it. Full map:
execution-with-mcp. RED is quantitative macro — mostly structural/calibration, which is outside this causal-inference toolchain; apply the chain to its empirical/reduced-form papers.
romano_wolf (step-down FWER) or benjamini_hochberg.oster_delta / sensemakr.wild_cluster_bootstrap (few clusters), twoway_cluster / conley.audit_result(result_id) lists missing checks + the exact
suggest_function for each.etable / did_summary_to_latex from the handle — no retyped numbers.Decisive checks in the body, exhaustive battery in the appendix. JF execution walkthrough.
Require a compact audit table before results are written:
| Item | RED-ready entry |
|---|---|
| Parameters | value, source/target, calibrated vs estimated vs assumed |
| Data moments | targeted moments plus untargeted validation moments |
| Solver | method, grid/order, convergence rule, accuracy diagnostic |
| Experiments | baseline, counterfactual, transition path, sensitivity |
| Archive | run-all command, seeds, software/OS, expected runtime |
This table can become a manuscript table, appendix table, or replication README section. If it cannot be filled, the quantitative core is not ready for RED.
Both the paper and the archive should carry a calibration record in this shape (values illustrative):
Internally calibrated (chosen to hit model-generated targets):
beta = 0.957 target: K/Y = 2.9 (annual) model hits: 2.90
phi = -1.1 target: share with negative net worth = 13.5% model hits: 13.2%
Externally set (taken from outside estimates):
sigma = 2.0 CRRA; standard in the incomplete-markets literature (author-year)
rho_z = 0.91 AR(1) earnings persistence, PSID estimates (author-year)
Accuracy at this parameterization:
max log10 |Euler error| = -4.6, 200-pt log-spaced asset grid, a_max = 40x mean income
Separating internally calibrated from externally set parameters matters at RED: referees check whether each internal target is actually informative about its parameter, and whether external values are sourced rather than convenient.
| Objection | Fix |
|---|---|
| "Targets are not independent of the moment you claim to explain" | re-calibrate with the headline moment excluded; report it as untargeted |
| "Fit shown only for targeted moments" | add an untargeted panel (wealth Gini, top shares, MPC distribution) |
| "No accuracy diagnostic at the headline solution" | Euler or den Haan errors at exactly that parameterization |
| "Grid and discretization undocumented" | state grid sizes, bounds, Rouwenhorst/Tauchen choice, and a grid-doubling stability check |
Before submission, maintain two runs:
Both runs should write comparable output names and logs. If the smoke run and publication run disagree in qualitative direction, the numerical method needs diagnosis before the paper is ready. Record expected runtime for both because RED's readme requirement makes runtime part of the archive, not an afterthought.
[Analysis status] ready / missing moments / weak solver diagnostics / unreproducible
[Calibration/estimation] <targets, parameters, estimator>
[Numerical checks] <solver, accuracy, convergence, sensitivity>
[Archive readiness] run-all / seeds / OS / runtime / missing
[Next analysis] <single computation or table to repair>
../../resources/external_tools.md — Dynare, SSJ, Julia/QuantEcon, FREDred-replication-and-data-policy — the archive these outputs feed