rdd-design
CommunityEstimate sharp and fuzzy RDD causal effects
Education & Research#python#causal inference#econometrics#policy evaluation#rdd#quasi-experiment#bandwidth selection
Authorxjtulyc
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps you estimate causal effects from observational data using Regression Discontinuity Design (RDD) by leveraging a cutoff in a running variable to approximate a randomized experiment.
Core Features & Use Cases
- Sharp RDD estimation: Compute the local treatment effect at the cutoff using bandwidth-weighted local polynomial regression, including standard errors, confidence intervals, and interpretation.
- Fuzzy RDD (local IV) estimation: Estimate LATE by combining reduced-form and first-stage jumps at the cutoff, with uncertainty via a delta-method standard error.
- Validity checks and robustness: Run McCrary-style manipulation (density continuity) tests, test covariate balance via separate RDDs on predetermined covariates, and assess bandwidth sensitivity to gauge estimator stability.
- Visualization: Produce cutoff plots with binned means and local fits for transparent reporting.
Quick Start
Use the RDD skill to estimate the treatment effect at a known threshold from your outcome array y, running variable array x, and cutoff value c by asking your agent to run sharp and fuzzy RDD plus manipulation and bandwidth sensitivity checks on your dataset.
Dependency Matrix
Required Modules
numpypandasstatsmodelsscipymatplotlibseabornrdrobust
Components
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: rdd-design Download link: https://github.com/xjtulyc/awesome-rosetta-skills/archive/main.zip#rdd-design Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.