Agent skill

performing-causal-analysis

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

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/performing-causal-analysis

SKILL.md

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:

Didn't find tool you were looking for?

Be as detailed as possible for better results