Alterlab Causal Inference
Estimates causal effects from observational and quasi-experimental data — difference-in-differences, instrumental variables, regression discontinuity, panel fixed effects, propensity-score / doubly-robust methods, and heterogeneous treatment effects (CATE) — using the verified Python stack: statsmodels and linearmodels (PanelOLS, IV2SLS), pyfixest (feols, event studies, Sun-Abraham, did2s), DoWhy (identify -> estimate -> refute), EconML (LinearDML, CausalForestDML, DRLearner), and rdrobust for RD. It names the identifying assumption before estimating and runs a refutation/robustness check afte
Install
/plugin marketplace add AlterLab-IEU/AlterLab-Academic-SkillsThe repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.
npx skills add AlterLab-IEU/AlterLab-Academic-Skills --skill alterlab-causal-inferencegit clone --depth 1 https://github.com/AlterLab-IEU/AlterLab-Academic-Skills.git /tmp/AlterLab-Academic-Skills
mkdir -p ~/.claude/skills
cp -r /tmp/AlterLab-Academic-Skills/skills/social-science-workflow/alterlab-causal-inference ~/.claude/skills/alterlab-causal-inferencePersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Causal Inference — Name the Assumption, Estimate, Then Try to Break It **Skill type: ANALYSIS MODULE.** Estimates a causal effect from data that was not fully randomized. The discipline is not the estimator — it is the **identifying assumption** the estimator relies on, stated before the fit and stress-tested after. If the design is not yet fixed, that belongs upstream in `alterlab-ssci-design-gate`. ## Core Mission ``` EVERY CAUSAL ESTIMATE INHERITS AN ASSUMPTION. STATE IT, ESTIMATE UNDER IT, THEN REFUTE IT. ``` ## When to Use This Skill - "Estimate the effect with difference-in-differences / an event study." - "I have an instrument for the treatment — run instrumental variables / 2SLS." - "There's a cutoff score — run a regression discontinuity." - "Panel data with unit and time fixed effects — estimate the treatment effect." - "Give me the heterogeneous treatment effect / CATE across subgroups." ### Does NOT Trigger | The request is really about… | Route to | Why not this skill | |---|---|---| | Choosing the design & its identifying assumption | `alterlab-ssci-design-gate` | Design routing precedes estimation. | | Plain OLS / descriptive or inferential stats (no causal identification) | `alterlab-statistical-analysis` / `alterlab-statsmodels` | No treatment-effect identification problem. | | Latent-variable / SEM / factor structure | `alterlab-sem-psychometrics` | Measurement model, not treatment effect. |
Details
- Skill name
alterlab-causal-inference- Repository
- AlterLab-IEU/AlterLab-Academic-Skills
- Path
skills/social-science-workflow/alterlab-causal-inference/SKILL.md- License
- MIT
- Repo updated
- 11 November 2026
- Listed in
- BehiSecc/awesome-claude-skills
FAQ
What does the Alterlab Causal Inference skill do?
Estimates causal effects from observational and quasi-experimental data — difference-in-differences, instrumental variables, regression discontinuity, panel fixed effects, propensity-score / doubly-robust methods, and heterogeneous treatment effects (CATE) — using the verified Python stack: statsmodels and linearmodels (PanelOLS, IV2SLS), pyfixest (feols, event studies, Sun-Abraham, did2s), DoWhy (identify -> estimate -> refute), EconML (LinearDML, CausalForestDML, DRLearner), and rdrobust for RD. It names the identifying assumption before estimating and runs a refutation/robustness check afte
How do I install the Alterlab Causal Inference skill?
Claude Code plugin: /plugin marketplace add AlterLab-IEU/AlterLab-Academic-Skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Alterlab Causal Inference popular?
It lives in AlterLab-IEU/AlterLab-Academic-Skills, which has 87 GitHub stars and 18 forks, and is included in 1 curated skill list.
Related skills
Alterlab Abm Mesa
87AlterLab-IEU/AlterLab-Academic-Skills
Builds agent-based models of social systems with Mesa 3 — the current AgentSet API (model.agents.shuffle_do('step'), auto-assigned unique_id, mandatory super().__init__(rng=...)), cell spaces (mesa.discrete_space OrthogonalMooreGrid / classic mesa.space grids), the DataCollector, batch_run parameter sweeps, and SolaraViz — for emergence, segregation, diffusion, opinion dynamics, and cooperation models. It uses the Mesa 3.x API (the old mesa.time schedulers like RandomActivation are removed) and treats the model as a generative theory to be validated, not just run. Use when the request mentions
Alterlab Academic Career
87AlterLab-IEU/AlterLab-Academic-Skills
Prepares academic career documents and professional-development materials for faculty and researchers. Use when drafting academic CVs, research statements, teaching philosophies, diversity statements, faculty-position cover letters, tenure dossiers, promotion narratives, academic portfolios, or mentorship statements, and when planning conference-networking strategy, building academic web presence, setting up ORCID profiles, or understanding impact metrics. Part of the AlterLab Academic Skills suite.
Alterlab Accreditation Aol
87AlterLab-IEU/AlterLab-Academic-Skills
Scaffolds program-level Assurance-of-Learning (AoL) documentation for AACSB (Standard 5 in the 2020 standards and the 2026 Global Standards) and ABET (Criterion 3 Student Outcomes, Criterion 4 Continuous Improvement) accreditation — program learning outcomes / competency goals, curriculum-to-outcome mapping matrices, direct- and indirect-assessment plans, rubric design, and closing-the-loop continuous-improvement narratives — and validates the structure of an outcome-mapping matrix with scripts/aol_matrix.py. Use when the user needs AACSB or ABET assurance-of-learning material, a program-learn
Alterlab Cbioportal
87AlterLab-IEU/AlterLab-Academic-Skills
Query cBioPortal via its keyless REST API for cancer genomics across TCGA, GENIE, MSK-IMPACT and hundreds of studies — somatic mutations, copy-number alterations (GISTIC), mRNA/protein expression, structural variants, and patient-level clinical/survival data. Use when asked how often a gene is mutated/amplified/deleted in a tumor type, to profile oncogenes or tumor suppressors across cancers (pan-cancer alteration frequency), to pull patient-level mutations joined to OS/clinical outcomes, or to validate a cancer target from cohort genomics. For germline variant pathogenicity use alterlab-clinv
Alterlab Brenda
87AlterLab-IEU/AlterLab-Academic-Skills
Access the BRENDA enzyme database — keyless through its public enzyme pages and DSMZ SPARQL endpoint, or through its SOAP API with an optional login — to retrieve kinetic parameters (Km, kcat, kcat/Km, Ki, IC50), pH and temperature optima, inhibitors and activators, reaction equations, organism data, and substrate-specific enzyme information indexed by EC number. Use when looking up enzyme kinetics, turnover numbers, or substrate specificity for biochemical research and metabolic pathway analysis. Part of the AlterLab Academic Skills suite.
Alterlab Cellxgene
87AlterLab-IEU/AlterLab-Academic-Skills
Query the CZ CELLxGENE Census (200M+ cells) programmatically via cellxgene-census and TileDB-SOMA, slicing expression by tissue, disease, or cell type and returning AnnData. Use when pulling reference single-cell RNA-seq data from the largest curated public atlas, running population-scale queries, or benchmarking your data against a reference — for analyzing your own dataset use scanpy or scvi-tools. Part of the AlterLab Academic Skills suite.
Browse the most popular Claude skills, all research & science skills, or write your own with the skills generator.