Skip to content
Back to skills

Performing Causal Analysis

ASecurity

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

  • 666 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 7, 2026
ai-agents

Security analysis

A100/100

Scanned June 7, 2026

npx -y skills add majiayu000/claude-skill-registry --skill performing-causal-analysis --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Performing Causal Analysis?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Performing Causal Analysis
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-performing-causal-analysis/badge)](https://www.skillsdirectory.com/skills/majiayu000-performing-causal-analysis)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
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:
*   [Difference-in-Differences](reference/diff_in_diff.md)
*   [Interrupted Time Series](reference/interrupted_time_series.md)
*   [Synthetic Control](reference/synthetic_control.md)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.