robustness-table
Generates robustness check code and formats results as a combined table. Use for sensitivity analysis.
它会碰到什么
扫了多少1 个文本文件,3 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
Generate Robustness Checks and Table
Given a baseline regression, generate code for standard robustness checks and format the results as a publication-ready table.
Arguments
$ARGUMENTS— notebook reference and baseline specification description (e.g., "notebook-02 baseline OLS with GDP on life expectancy")
Steps
- Read the specified notebook and locate the baseline regression:
- Look for estimation commands (Python:
statsmodels,linearmodels; R:lm,fixest,felm; Stata:reg,reghdfe,ivregress) - Identify the dependent variable, independent variables, fixed effects, and clustering
- Ask the user which robustness checks to include:
- Alternative control variable sets (drop/add controls)
- Alternative fixed effects specifications
- Different standard error clustering levels
- Subsample analysis (e.g., by region, time period, income group)
- Winsorized or trimmed dependent variable
- Alternative dependent variable (e.g., log vs level)
- Placebo tests (randomized treatment, pre-period outcome)
- Alternative estimation methods (e.g., OLS vs Poisson, logit vs probit)
- Generate code cells in the notebook for each robustness specification:
- Each cell should be self-contained (loads data, runs regression, stores results)
- Use consistent variable naming for results collection
- Create a summary cell that collects all results into a single table:
- Cell directive:
#| label: tbl-robustness(or*|for Stata) - Cell directive:
#| tbl-cap: "Robustness checks"(or*|for Stata) - Format: baseline in column (1), each robustness check in subsequent columns
- Follow academic conventions: coefficient (SE), significance stars, N, R², FE indicators
- Stata caveat: Do NOT use
tbl-prefix for Stata text output — use a plain label (e.g.,stata-robustness)
- Optionally export the table to
tables/as a standalone file (LaTeX or CSV)
- Sync the Jupytext pair:
uv run jupytext --sync notebooks/<name>.md
- Show the embed shortcode for
index.qmd:
{{< embed notebooks/<name>.ipynb#tbl-robustness >}}
Error handling
- If the baseline regression is not found, ask the user to point to the specific cell.
- If the notebook uses a language not recognized, ask for guidance on the estimation syntax.
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。
它属于哪个仓库
星标★ 3,829
本站分层T1
该仓技能数1161
原文件路径
skills/29-quarcs-lab-project20XXy/dot-claude/skills/robustness-table/SKILL.md同一个仓库里的其他技能
- Full-empirical-analysis-skill
- Full-empirical-analysis-skill-R
- Full-empirical-analysis-skill-Stata
- auto-empirical-research-skills
- StatsPAI_skill
- Full-empirical-analysis-skill
- Full-empirical-analysis-skill-Stata
- Full-empirical-analysis-skill-R
- academic-paper-composer
- academic-paper-strategist
- medical-imaging-review
- paper-slide-deck