cps-data-analysis

GitHub

用于执行和报告比较政治研究(CPS)手稿的定量分析,涵盖估计、不确定性评估、稳健性及多方法三角验证。规范数据处理标准,确保结果透明且可复现,以应对比较数据特有的挑战。

Comparative-Political-Studies-Skills/skills/cps-data-analysis/SKILL.md brycewang-stanford/Awesome-Journal-Skills

Trigger Scenarios

执行主效应、稳健性和异质性估计 回应审稿人对标准误或结果的质疑 决定正文与附录的内容分配 将定量估计与案例证据进行三角验证

Install

npx skills add brycewang-stanford/Awesome-Journal-Skills --skill cps-data-analysis -g -y
More Options

Non-standard path

npx skills add https://github.com/brycewang-stanford/Awesome-Journal-Skills/tree/main/Comparative-Political-Studies-Skills/skills/cps-data-analysis -g -y

Use without installing

npx skills use brycewang-stanford/Awesome-Journal-Skills@cps-data-analysis

指定 Agent (Claude Code)

npx skills add brycewang-stanford/Awesome-Journal-Skills --skill cps-data-analysis -a claude-code -g -y

安装 repo 全部 skill

npx skills add brycewang-stanford/Awesome-Journal-Skills --all -g -y

预览 repo 内 skill

npx skills add brycewang-stanford/Awesome-Journal-Skills --list

SKILL.md

Frontmatter
{
    "name": "cps-data-analysis",
    "description": "Use when running and reporting the analyses for a Comparative Political Studies (CPS) manuscript — estimation, uncertainty, robustness, and multi-method triangulation on comparative data. Sets analysis norms; it does not choose the identification strategy (see cps-research-design)."
}

Data Analysis (cps-data-analysis)

Once the design is fixed (cps-research-design), this skill governs how the analyses are run and reported so a CPS reviewer trusts them. Comparative data bring distinctive hazards: few clusters (countries), cross-national measurement error, missing data that differ by regime, and the temptation to over-read a panel correlation as causal. The standard is modern, transparent, and replication-ready.

When to trigger

  • Estimating the main results, robustness, and heterogeneity
  • A reviewer questioned standard errors, specification, measurement, or fragility of the result
  • Deciding what goes in the main text vs. the supplementary/online appendix
  • Triangulating quantitative estimates with case evidence

Analysis priorities (in order)

  1. Main estimate that matches the design. The headline specification should be the one the identification argument justifies — not the one with the biggest coefficient or most stars.
  2. Honest uncertainty. Cluster at the assignment level (usually country / country-year); with few countries use wild-cluster bootstrap or randomization inference. Report CIs, not just stars.
  3. Measurement transparency. Name the source and coding of each comparative variable (e.g., V-Dem, Polity, CSES, Manifesto Project); show robustness to alternative codings of the key construct.
  4. Robustness as a coherent story. Alternative specifications, samples, codings, and estimators that probe the threats named in the design — not a scattershot table of every variant.
  5. Heterogeneity by theory. Subgroups/scope conditions pre-specified by the mechanism (cps-theory-building), not data-mined; adjust for multiple comparisons.
  6. Mechanism evidence. Tie the quantitative result to the mechanism — mediation cautiously, or case evidence in a multi-method design.

Comparative-data hazards to address explicitly

Hazard Symptom Fix
Few clusters (countries) over-rejection, tiny SEs wild-cluster bootstrap / randomization inference
Cross-national measurement error results flip across codings show robustness to V-Dem/Polity/alt scales
Differential missingness sample changes by regime type report attrition; multiple imputation with caution
Time-series confounding spurious trend correlations unit + period FE; over-time placebo

Failure-mode audit

Run this audit before interpreting the main coefficient:

  • Concept equivalence: Does the key variable mean the same thing across regimes, languages, regions, or institutions? If not, report measurement-invariance checks, alternative codings, or scope limits.
  • Selection into observation: Are only more democratic, richer, more peaceful, or better-measured cases observed? Report the observation process and show how estimates change under credible sample restrictions.
  • Temporal dependence: Are observations mechanically persistent across years? Use lag structure, unit trends, event-time plots, or placebo leads to avoid re-labeling persistence as effect.
  • Cluster leverage: Does one country, region, election, conflict, or reform episode drive the result? Show leave-one-cluster-out or influence diagnostics for claims that hinge on few cases.
  • Subgroup multiplicity: If theory predicts heterogeneity, pre-specify the dimensions and report how many comparisons were examined.

The output should connect each failure mode to a design threat. Do not add a robustness table unless it answers a named threat in cps-research-design.

Execution bridge (StatsPAI / Stata MCP)

Run the battery, don't just enumerate it. Full map: execution-with-mcp. CPS is comparative politics — cross-national and sub-national designs; emphasize identification and clustered / multiway inference.

  • Many outcomes / specifications: romano_wolf (step-down FWER) or benjamini_hochberg — report the adjusted threshold.
  • OVB sensitivity: oster_delta / sensemakr.
  • Inference: wild_cluster_bootstrap (few clusters), twoway_cluster / conley; multilevel data → cluster at the right level.
  • Re-fit off one handle: audit_result(result_id) lists the missing checks and the exact suggest_function for each.
  • Exhibits: etable / did_summary_to_latex from the handle — no retyped numbers.

Keep the decisive checks in the body and the exhaustive battery in the supplement. See the executed chain in the JF execution walkthrough.

Checklist

  • Headline specification = the one the design justifies
  • SEs clustered at the assignment level; few-cluster correction where needed
  • Every comparative variable's source and coding named; key construct robust to alt codings
  • Robustness probes the design's named threats; not a kitchen sink
  • Heterogeneity pre-specified by theory; multiple testing addressed
  • Main text vs. appendix split is deliberate; every appendix result is referenced
  • All results reproduce from the script destined for the CPS Dataverse

Anti-patterns

  • Treating a cross-national panel correlation as causal without the design to back it
  • Default OLS SEs with 20 countries (massively over-rejects)
  • Cherry-picking the coding of the key variable that gives significance
  • Robustness theater — many variants that never test the actual threat
  • Data-mined subgroups reported as confirmed heterogeneity
  • Results in the paper that the deposited code does not reproduce

Output format

【Headline result】estimate + CI, with the design it rests on
【Inference】clustering level + few-cluster correction if any
【Measurement】sources/codings + alt-coding robustness
【Failure-mode audit】concept equivalence / observation selection / temporal dependence / cluster leverage / multiplicity
【Robustness】the design-threats probed
【Heterogeneity】theory-driven subgroups + multiple-testing fix
【Reproducible?】script regenerates every exhibit [Y/N]
【Next】cps-tables-figures

Supplementary resources

Version History

  • 1839142 Current 2026-07-05 12:38

Same Skill Collection

AAAI-Skills/skills/aaai-artifact-evaluation/SKILL.md
AAAI-Skills/skills/aaai-author-response/SKILL.md
AAAI-Skills/skills/aaai-camera-ready/SKILL.md
AAAI-Skills/skills/aaai-experiments/SKILL.md
AAAI-Skills/skills/aaai-related-work/SKILL.md
AAAI-Skills/skills/aaai-reproducibility/SKILL.md
AAAI-Skills/skills/aaai-review-process/SKILL.md
AAAI-Skills/skills/aaai-submission/SKILL.md
AAAI-Skills/skills/aaai-supplementary/SKILL.md
AAAI-Skills/skills/aaai-topic-selection/SKILL.md
AAAI-Skills/skills/aaai-workflow/SKILL.md
AAAI-Skills/skills/aaai-writing-style/SKILL.md
AAMAS-Skills/skills/aamas-artifact-evaluation/SKILL.md
AAMAS-Skills/skills/aamas-author-response/SKILL.md
AAMAS-Skills/skills/aamas-camera-ready/SKILL.md
AAMAS-Skills/skills/aamas-experiments/SKILL.md
AAMAS-Skills/skills/aamas-related-work/SKILL.md
AAMAS-Skills/skills/aamas-reproducibility/SKILL.md
AAMAS-Skills/skills/aamas-review-process/SKILL.md
AAMAS-Skills/skills/aamas-submission/SKILL.md
AAMAS-Skills/skills/aamas-supplementary/SKILL.md
AAMAS-Skills/skills/aamas-topic-selection/SKILL.md
AAMAS-Skills/skills/aamas-workflow/SKILL.md
AAMAS-Skills/skills/aamas-writing-style/SKILL.md
Academy-of-Management-Annals-Skills/skills/amann-editor-strategy/SKILL.md
Academy-of-Management-Annals-Skills/skills/amann-evidence-standards/SKILL.md
Academy-of-Management-Annals-Skills/skills/amann-literature-synthesis/SKILL.md
Academy-of-Management-Annals-Skills/skills/amann-organizing-framework/SKILL.md
Academy-of-Management-Annals-Skills/skills/amann-proposal-framing/SKILL.md
Academy-of-Management-Annals-Skills/skills/amann-review-process/SKILL.md
Academy-of-Management-Annals-Skills/skills/amann-revision/SKILL.md
Academy-of-Management-Annals-Skills/skills/amann-submission/SKILL.md
Academy-of-Management-Annals-Skills/skills/amann-tables-figures/SKILL.md
Academy-of-Management-Annals-Skills/skills/amann-topic-selection/SKILL.md
Academy-of-Management-Annals-Skills/skills/amann-workflow/SKILL.md
Academy-of-Management-Annals-Skills/skills/amann-writing-style/SKILL.md
Academy-of-Management-Journal-Skills/skills/amj-contribution-framing/SKILL.md
Academy-of-Management-Journal-Skills/skills/amj-data-analysis/SKILL.md
Academy-of-Management-Journal-Skills/skills/amj-literature-positioning/SKILL.md
Academy-of-Management-Journal-Skills/skills/amj-methods/SKILL.md
Academy-of-Management-Journal-Skills/skills/amj-rebuttal/SKILL.md
Academy-of-Management-Journal-Skills/skills/amj-review-process/SKILL.md
Academy-of-Management-Journal-Skills/skills/amj-submission/SKILL.md
Academy-of-Management-Journal-Skills/skills/amj-tables-figures/SKILL.md
Academy-of-Management-Journal-Skills/skills/amj-theory-development/SKILL.md
Academy-of-Management-Journal-Skills/skills/amj-topic-selection/SKILL.md
Academy-of-Management-Journal-Skills/skills/amj-workflow/SKILL.md
Academy-of-Management-Journal-Skills/skills/amj-writing-style/SKILL.md
Academy-of-Management-Review-Skills/skills/amr-contribution-framing/SKILL.md
Academy-of-Management-Review-Skills/skills/amr-data-analysis/SKILL.md

Metadata

Files
0
Version
c82fe76
Hash
0c2d0d94
Indexed
2026-07-05 12:38

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-04 05:06
浙ICP备14020137号-1 $Гость$