Skip to content
Back to skills

Performing Causal Analysis

ASecurity

Estimate causal effects from existing data. Use when fitting or interpreting DiD, ITS, synthetic control, regression discontinuity, or other treatment-effect analyses, including robustness checks and counterfactual plots. For choosing a study design before analysis, use designing-experiments instead.

  • 3,126 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 2, 2026
ai-agents

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned June 2, 2026

npx -y skills add foryourhealth111-pixel/Vibe-Skills --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/foryourhealth111-pixel-performing-causal-analysis/badge)](https://www.skillsdirectory.com/skills/foryourhealth111-pixel-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: Estimate causal effects from existing data. Use when fitting or interpreting DiD, ITS, synthetic control, regression discontinuity, or other treatment-effect analyses, including robustness checks and counterfactual plots. For choosing a study design before analysis, use designing-experiments instead.
---

# Performing Causal Analysis

Executes causal analysis on existing data. This skill owns model setup, treatment-effect estimation, counterfactual comparison, robustness checks, and interpretation of fitted causal results.

It does not own the earlier question of which experiment or quasi-experiment should be designed before analysis begins.

## 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)

Files in this skill

  • SKILL.md1.4 KB
  • reference/diff_in_diff.md1.7 KB
  • reference/interrupted_time_series.md1.5 KB
  • reference/synthetic_control.md1.4 KB

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…