金色时刻 · 15:48
让好资源,触手可及
AGENT SKILL

designing-experiments

designing-experiments 是面向数据与分析的 Agent Skill,来自 pymc-labs/CausalPy。查看技能说明、操作步骤与使用约定,并通过原项目了解详细用法。

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.

SKILL.md

下载 MD ↓
namedesigning-experiments
descriptionSelects 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

  1. Control Group?

    • Yes: Go to Step 2.
    • No: Consider Interrupted Time Series (ITS).
  2. Unit Structure?

    • Single Treated Unit:
      • With multiple controls: Synthetic Control (SC).
      • No controls: ITS.
    • Multiple Treated Units:
      • With control group: Difference-in-Differences (DiD).
  3. 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).

来源:pymc-labs/CausalPy · Apache-2.0 许可 · 许可原文 · MD 为来源页保存的历史版本