stata-accounting-research
为会计类实证研究复现与快速开发提供经测试的 STATA 模式与片段。
基于 JAR 论文的 STATA 代码模式库,提供常见实证流程语法。
把 JAR 期刊论文里的 STATA 实现套路直接给你写好,涵盖 DiD、IV、RDD、event study、PSM、Fama-MacBeth、reghdfe 等常见实证方法。适合你想看别人是怎么写代码、需要可跑的 STATA 语法片段时用,不是方法选择咨询。特别之处在于示例来自 2017–2025 年间 126 个经检验的 JAR 复现文件,更贴近发表论文里的写法。
▸ 展开 SKILL.md 英文原文
STATA code pattern library for empirical archival accounting research. Provides tested syntax from 126 peer-reviewed JAR (Journal of Accounting Research) replication files (2017-2025). Use when the user asks procedural questions like "How do I implement [method]?" or "Show me code for [technique]" — including: entropy balancing, propensity score matching (PSM), difference-in-differences (DiD), regression discontinuity (RDD), instrumental variables (IV), event studies (CAR/BHAR), survival analysis, Fama-MacBeth regressions, bootstrap, quantile regression, reghdfe/xtreg/areg, clustering standard errors, fixed effects, esttab/outreg2 table formatting, winsorization, leads/lags. Users can specify their variables (e.g., treatment, outcomes, controls) and receive adapted syntax. NOTE: This skill provides code patterns from published papers, not research design advice.
帮我安装这个 skill:https://raw.githubusercontent.com/brycewang-stanford/Auto-Empirical-Research-Skills/main/skills/18-jusi-aalto-stata-accounting-research/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/brycewang-stanford/Auto-Empirical-Research-Skills/main/skills/18-jusi-aalto-stata-accounting-research/SKILL.md"## Scope and Limitations This skill is a **code pattern library**, not a methodological advisor. | Can Do | Cannot Do | |--------|-----------| | Show *how* published papers implemented methods | Explain *when* to use one method over another | | Provide tested STATA syntax | Advise on identification strategy | | Indicate which robustness tests accompany analyses | Discuss research design trade-offs | | Cite source papers for code patterns | Recommend optimal research design | **When users ask methodology questions** (e.g., "Should I use entropy balancing or PSM?", "How do I address endogeneity?", "Is my identification strategy valid?"): 1. Acknowledge the limitation: "This skill provides