Back to list
pymc-labs

performing-causal-analysis

by pymc-labs

A Python package for causal inference in quasi-experimental settings

1,093🍴 91📅 Jan 21, 2026

SKILL.md


name: performing-causal-analysis description: Fits causal models, estimates impacts, and plots results using CausalPy. Use when performing analysis with DiD, ITS, SC, or RD.

Performing Causal Analysis

Executes causal analysis using CausalPy experiment classes.

Workflow

  1. Load Data: Ensure data is in a Pandas DataFrame.
  2. Initialize Experiment: Use the appropriate class (see References).
  3. Fit & Model: Models are fitted automatically upon initialization if arguments are provided.
  4. Analyze Results: Use summary(), print_coefficients(), and plot().

Core Methods

  • experiment.summary(): Prints model summary and main results.
  • experiment.plot(): Visualizes observed vs. counterfactual.
  • experiment.print_coefficients(): Shows model coefficients.

References

Detailed usage for specific methods:

Score

Total Score

80/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 1000以上

+15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

+5
Issue管理

オープンIssueが50未満

0/5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon