Selects the appropriate quasi-experimental method (DiD, ITS, SC) based on data structure and research questions. Use when the user is unsure which method to apply.
Installation
Details
Usage
After installing, this skill will be available to your AI coding assistant.
Verify installation:
skills listSkill Instructions
name: designing-experiments description: Selects the appropriate quasi-experimental method (DiD, ITS, SC) based on data structure and research questions. Use when the user is unsure which method to apply.
Designing Experiments
Helps select the appropriate causal inference method.
Decision Framework
-
Control Group?
- Yes: Go to Step 2.
- No: Consider Interrupted Time Series (ITS).
-
Unit Structure?
- Single Treated Unit:
- With multiple controls: Synthetic Control (SC).
- No controls: ITS.
- Multiple Treated Units:
- With control group: Difference-in-Differences (DiD).
- Single Treated Unit:
-
Time Structure?
- Panel Data (Multiple units over time): Required for DiD and SC.
- Time Series (Single unit over time): Required for ITS.
Method Quick Reference
- Difference-in-Differences (DiD): Compares trend changes between treated and control groups. Assumes Parallel Trends.
- Interrupted Time Series (ITS): Analyzes trend/level change for a single unit after intervention. Assumes Trend Continuity.
- Synthetic Control (SC): Constructs a synthetic counterfactual from weighted control units. Assumes Convex Hull (treated unit within range of controls).
More by pymc-labs
View allInteractive development in marimo notebooks with validation loops. Use for creating/editing marimo notebooks and verifying execution.
Fits causal models, estimates impacts, and plots results using CausalPy. Use when performing analysis with DiD, ITS, SC, or RD.
Loads internal CausalPy example datasets. Use when the user needs example data or asks about available demos.
Performs placebo-in-time sensitivity analysis to validate causal claims. Use when checking model robustness, verifying lack of pre-intervention effects, or ensuring observed effects are not spurious.
