foryourhealth111-pixel/Vibe-Skills / bundled/skills/performing-causal-analysis
performing-causal-analysis
VerifiedEstimate 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.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 1.4 KB |
| reference/diff_in_diff.md | markdown | 1.7 KB |
| reference/interrupted_time_series.md | markdown | 1.5 KB |
| reference/synthetic_control.md | markdown | 1.4 KB |
SKILL.md
View on GitHub---
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)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |