Performing causal analysis

From foryourhealth111-pixel/Vibe-Skills · View interactive version

Performing causal analysis is an AI agent skill from the GitHub repository foryourhealth111-pixel/Vibe-Skills. 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

How to use this skill

Skill file

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

References

Detailed usage for specific methods:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.