Results Analysis logo

Results Analysis

Community
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.

Overview

PublisherHaipingXu
Repositorysocial-science-claude-scholar
Skill nameresults-analysis
Stars
26
Forks
5
Bundled files
7
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 7 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by HaipingXu on GitHub. Read the source before you install it.

Installation

Install the Results Analysis AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/HaipingXu/social-science-claude-scholar/tree/main/skills/results-analysis
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Results Analysis in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Results Analysis on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Results Analysis is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.)

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Results Analysis AI skill do?

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.

Why use Results Analysis on TypingMind?

Because you install it once and use it with any model. Results Analysis is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Results Analysis in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/HaipingXu/social-science-claude-scholar/tree/main/skills/results-analysis. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Results Analysis?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Results Analysis?

As many as you like. As long as a model supports skills, you can use Results Analysis with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Results Analysis AI skill free?

It is published on GitHub by HaipingXu. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇