Logo de Results Analysis

Results Analysis

Comunidade
HaipingXu
results-analysis

This skill should be used when the user asks to "analyze empirical results", "generate results section", "interpret regression output", "create regression tables", "visualize DID results", "plot event study", "check pre-trends", "first stage F-statistic", "run robustness checks", "interpret causal estimates", or mentions connecting empirical analysis to social science paper writing. Covers DID, IV, RDD, and Synthetic Control designs.

Visão geral

Publicado porHaipingXu
Repositóriosocial-science-claude-scholar
Nome da habilidaderesults-analysis
Estrelas
26
Forks
5
Arquivos incluídos
7
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Arquivos incluídos: 7

    Scripts, templates e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente para leitura e nunca são executados.

  • Código aberto

    Publicada por HaipingXu no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Results Analysis no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/HaipingXu/social-science-claude-scholar/tree/main/skills/results-analysis
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/HaipingXu/social-science-claude-scholar.git /tmp/social-science-claude-scholar
mkdir -p .claude/skills
cp -r /tmp/social-science-claude-scholar/skills/results-analysis .claude/skills/results-analysis
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Results Analysis em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Results Analysis automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Results Analysis não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Results Analysis for Social Science Empirical Research

A systematic empirical results analysis workflow for political science and economics papers — from raw regression output to publication-ready tables, figures, and Results section text.

Core Features

  1. Identification Assumption Checks — Pre-trend tests, first-stage F, McCrary density, MSPE ratios
  2. Main Results Presentation — Regression tables with proper SE clustering, LaTeX output
  3. Robustness Battery — Alternative specifications, placebo tests, subgroup analysis
  4. Visualization — Event study plots, coefficient plots, RD plots, binned scatter
  5. Results Section Writing — Social science journal structure (APSR/AJPS/AER/QJE)

When to Use

  • Validate identification assumptions (pre-trends, exclusion restriction, continuity)
  • Generate LaTeX regression tables ready for insertion
  • Create event study / coefficient plots
  • Conduct and report robustness checks
  • Write or revise the Results / Empirical Findings section
  • Interpret causal estimates in substantive terms

Workflow

Data Loading → Identification Checks → Main Results → Robustness → Visualization → Writing → Quality Check

Step 1: Data and Output Loading

Common Input Formats:

  • .dta — Stata dataset (load via pystata or pandas + pyreadstat)
  • .csv — Panel / cross-sectional data
  • Stata log (.smcl / .log) — Regression output to parse
  • Python objects — Results from statsmodels, linearmodels, econml

Initial Data Checks:

  • Sample dimensions: N units, T periods, total observations
  • Panel structure: balanced vs. unbalanced, attrition pattern
  • Missing values: which variables, which groups/periods
  • Treatment/control proportions and overlap

Step 2: Identification Assumption Checks

Always validate before reporting main results.

DID / Event Study
  • Pre-trend test: plot event-study coefficients for periods t = −k to t = −1; all should be statistically indistinguishable from zero
  • Parallel trends visual: plot raw outcome trends for treated and control groups pre-treatment
  • Anticipation effects: inspect t = −1 and t = −2 coefficients
  • Callaway-Sant'Anna / Sun-Abraham for staggered treatment: check for heterogeneity-robust estimates
Instrumental Variables
  • First stage F-statistic: report Kleibergen-Paap (clustered) F, not Cragg-Donald; Stock-Yogo critical values
  • Weak instrument: F > 10 as rule of thumb; F > 104.7 for 5% size distortion (Stock-Yogo)
  • Exclusion restriction: theoretical argument + placebo outcome test
  • Endogeneity test: Hausman test (if OLS and IV differ significantly, report both)
RDD
  • Density continuity: McCrary (2008) test; plot histogram around cutoff
  • Covariate balance: run RDD on pre-determined covariates (should be ≈ 0)
  • Optimal bandwidth: IK (2012) or CCT (2014); report results across multiple bandwidths
  • Donut-hole robustness: exclude observations very close to cutoff
Synthetic Control
  • Pre-period fit: MSPE ratio (treated vs. donor pool); target < 2
  • Placebo in-space: run SC for each donor unit; treated effect should be an outlier
  • Placebo in-time: use an artificial earlier treatment date; effect should be near zero
  • Leave-one-out: drop each donor and re-run; check stability

See references/identification-checklist.md for detailed protocols and code snippets.


Step 3: Main Results

Regression Table Standards (social science journals):

ElementRequirement
Standard errorsClustered at appropriate level (state, county, individual); heteroskedasticity-robust as minimum
Significance markers†p<0.10, *p<0.05, **p<0.01, ***p<0.001 (or journal-specific)
Fixed effects rowsInclude "Unit FE ✓", "Time FE ✓" rows at bottom
Sample infoN (observations), N_clusters if clustered
Model fitR² (within R² for FE models), first-stage F for IV

Recommended Column Progression:

(1) OLS / Baseline
(2) Main specification (DID / IV / RDD)
(3) + Controls
(4) Alternative clustering
(5) Alternative fixed effects / specification

Effect Size Interpretation:

  • Raw coefficient + percentage of outcome mean (e.g., "0.23 SD increase, or 14% of the sample mean")
  • For log outcomes: elasticity ("a 10% increase in X → Y% change in outcome")
  • For binary outcomes: marginal effects at the mean alongside LPM/logit

Step 4: Robustness Checks

Standard Robustness Battery:

CheckDescription
Alternative window/bandwidth±50%, ±200% of main specification
Different control setsNo controls → parsimonious → saturated
Alternative outcome definitionsDifferent measurement, normalization
Alternative clustering levelOne level up / down
Wild bootstrapFor small N_cluster (< 50)
Placebo treatmentAssign treatment to untreated units
Placebo outcomeTest on predetermined variable
Subgroup analysisKey heterogeneity dimensions
Balanced panelRestrict to always-observed units

Present robustness as a coefficient plot across specifications (point estimate + 95% CI per column), or a robustness table in the appendix.


Step 5: Visualization

Event Study / Coefficient Plot:

  • Point estimates + 95% CI for each event-time period
  • Reference line at zero; vertical dashed line at treatment date
  • Pre-period serves as visual identification test
  • Use matplotlib + pandas or plotnine (ggplot2 equivalent)

Coefficient Plot (across specifications):

  • One row per specification, all on same scale
  • Ordered by model complexity or specification dimension

RD Plot:

  • Binned scatter with local polynomial fit on each side of cutoff
  • Confidence band around polynomial
  • Raw scatter as background (lighter color)

Binned Scatter:

  • For non-parametric relationship visualization
  • Residualize on controls / FE before binning

Publication Standards:

  • Vector format (PDF preferred for journals)
  • Colorblind-safe palette (Okabe-Ito or similar)
  • Font size ≥ 10pt
  • Axis labels in plain English (not variable names like ln_gdppc)
  • Caption must be self-contained

See references/visualization-guide.md for Python/Stata code templates.


Step 6: Writing the Empirical Results Section

Social Science Results Structure:

markdown
## [N]. Empirical Results

### [N.1] Main Results
[Lead with headline number and substantive significance]
[Table X presents the main results. Column (1) shows... Column (2) adds...]
[Interpret magnitude: "a one-standard-deviation increase in X is associated with a Y-unit / Z% change in outcome"]

### [N.2] Identification Tests
[Pre-trend test: "Figure X plots event-study coefficients... none of the pre-treatment coefficients are statistically distinguishable from zero"]
[First stage: "The Kleibergen-Paap F-statistic is XX, exceeding the Stock-Yogo critical value"]

### [N.3] Robustness
[Brief summary: "These results are robust to..."; point to Appendix Table X]

### [N.4] Heterogeneity / Mechanisms
[Which subgroups show larger/smaller effects and why — connect to theory]

Writing Principles:

  • Lead with substantive significance ("equivalent to 0.3 years of average wage growth"), not just stars
  • Always interpret magnitudes in context
  • Explicitly link identification evidence back to the causal claim
  • Acknowledge limitations honestly; reviewers will raise them anyway

See references/results-writing-guide.md for journal-specific style guidance.


Step 7: Quality Checklist

  • Identification assumptions explicitly tested and reported
  • Standard errors clustered at correct level (justified in text)
  • Regression table includes N, FE indicators, clustering info
  • Effect sizes interpreted in substantive terms (not just "significant")
  • Pre-trend / first-stage F / density test results reported
  • At least 3 robustness specifications
  • Figures are vector format, colorblind-safe, self-contained captions
  • Results section connects back to theoretical motivation

Integration with Paper Writing

Causal analysis complete (Stata / Python)
    ↓
results-analysis: validate assumptions, generate tables/figures
    ↓
ml-paper-writing: integrate into full paper structure
    ↓
Complete Empirical Results section

This skill handles:

  • Assumption validation and reporting
  • Regression tables (LaTeX)
  • Visualization (event study, coefficient plots, RD plots)
  • Results section drafting

ml-paper-writing handles:

  • Full paper structure (Introduction, Theory, Data, Conclusion)
  • Citation formatting
  • Journal submission requirements

Reference Resources

  • references/identification-checklist.md — DID/IV/RDD/SC assumption testing with code
  • references/visualization-guide.md — Python + Stata code templates for coefficient plots, event studies
  • references/results-writing-guide.md — Results section writing standards for APSR/AJPS/AER/QJE
  • references/statistical-methods.md — Statistical tests reference (clustered SE, wild bootstrap, etc.)

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Results Analysis faz?

This skill should be used when the user asks to "analyze empirical results", "generate results section", "interpret regression output", "create regression tables", "visualize DID results", "plot event study", "check pre-trends", "first stage F-statistic", "run robustness checks", "interpret causal estimates", or mentions connecting empirical analysis to social science paper writing. Covers DID, IV, RDD, and Synthetic Control designs.

Por que usar Results Analysis no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Results Analysis é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Results Analysis no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/HaipingXu/social-science-claude-scholar/tree/main/skills/results-analysis. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Results Analysis?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Results Analysis?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Results Analysis com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Results Analysis é gratuita?

A habilidade é publicada no GitHub por HaipingXu. Consulte os termos de licenciamento no repositório. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇