mcpbeat

Performing Causal Analysis

foryourhealth111-pixel/performing-causal-analysis

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.

2k tokens
context cost
the whole folder, loaded on every use
4
files
instructions only
0
copies elsewhere
how many repositories repackaged it
2583
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/foryourhealth111-pixel/Vibe-Skills --skill performing-causal-analysis

What comes with it

4 732 bytes besides the instruction
reference/diff_in_diff.md
reference/interrupted_time_series.md
reference/synthetic_control.md

The instruction itself

4 sections, as written by the author

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

  • Load Data: Ensure data is in a Pandas DataFrame.
  • Initialize Experiment: Use the appropriate class (see References).
  • Fit & Model: Models are fitted automatically upon initialization if arguments are provided.
  • 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
  • Interrupted Time Series
  • Synthetic Control

How to use it

Copy the folder

Take foryourhealth111-pixel/performing-causal-analysis from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.