rdd-analysis

Estimate local treatment effects at known cutoffs using regression discontinuity designs.

Updated Apr 15, 2026
One-click install
npx skills add https://github.com/sheehe/coase --skill rdd-analysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rdd-analysis
Source: https://github.com/sheehe/coase/tree/main/%E5%AE%9E%E8%AF%81%E7%A7%91%E7%A0%94%E6%8F%92%E4%BB%B6/econometrics/econometrics/skills/rdd-analysis
Command: npx skills add https://github.com/sheehe/coase --skill rdd-analysis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This RDD skill helps researchers estimate local average treatment effects at known cutoffs by applying regression discontinuity designs, addressing causal inference challenges near thresholds.

Core Features & Use Cases

  • Sharp and fuzzy RDD identification with bandwidth selection and local polynomial estimation.
  • Validation and reporting best practices, including density tests, covariate balance checks, and placebo cutoffs.
  • Use Case: A policy analyst evaluates the impact of a new credential program where eligibility changes at a score threshold, focusing on the discontinuity at the cutoff.

Quick Start

Apply the RDD analysis to your dataset by specifying the running variable, the cutoff, and the outcome, then perform a local linear estimate with a triangular kernel.

Frequently Asked Questions about rdd-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I estimate causal effects at a cutoff using regression discontinuity design?

Regression discontinuity design estimates local treatment effects by fitting local polynomial models on a running variable around a defined cutoff. You need a running variable, a cutoff point, and outcome data to compute robust in-sample estimates.

What is the difference between sharp and fuzzy RDD in causal inference?

Sharp RDD assumes perfect treatment assignment at the cutoff, while fuzzy RDD handles imperfect compliance by using the cutoff as an instrumental variable. Both designs require bandwidth selection and local polynomial estimation to identify causal effects.

How do I select the optimal bandwidth for local polynomial estimation in RDD?

Optimal bandwidth selection balances bias and variance near the cutoff to produce robust local treatment estimates. Established RDD tools apply data-driven algorithms to determine the ideal window for local linear estimators.

What validity tests should I run to check RDD assumptions near the cutoff?

RDD validity testing includes density tests of the running variable, covariate balance checks, and placebo cutoffs. These tests ensure no manipulation occurred at the threshold and that covariates are continuous across the cutoff.

Can I use a triangular kernel for local linear estimation in a regression discontinuity design?

Yes, a triangular kernel is commonly applied to weight observations closer to the cutoff more heavily during local linear estimation. Specifying this kernel alongside your running variable and outcome produces robust discontinuity estimates.

When should I not use regression discontinuity design for causal inference?

RDD is inappropriate when no defined cutoff exists in the running variable or when treatment assignment is not determined by a threshold. It specifically estimates local average treatment effects at the cutoff, not global effects across the entire sample.