Skip to content
Back to skills

Causal Estimation

ASecurity

"Classical CausalML causal estimators covering meta-learners, TMLE,

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
datagoapi

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill causal-estimation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Causal Estimation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Causal Estimation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-causal-estimation/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-causal-estimation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: causal-estimation
description: "Classical CausalML causal estimators covering meta-learners, TMLE,
  IV/DRIV, serialization, and estimator API contracts."
disable-model-invocation: true
metadata:
  disco-role: operating
license: NOASSERTION
---

# causal-estimation

Use this sub-skill for classical causal effect estimation with CausalML 0.17.0:
S/T/X/R/DR meta-learners, TMLE ATE estimation, instrumental-variable estimators,
propensity-score contracts, argument-order migration, DataFrame/Polars handling,
and joblib-backed learner serialization.

## Route by question type

- **Meta-learners and CATE/ATE**: use [references/meta-learners.md](references/meta-learners.md).
  This includes `BaseSRegressor`, `BaseSClassifier`, `BaseTRegressor`,
  `BaseTClassifier`, `BaseXRegressor`, `BaseXClassifier`, `BaseRRegressor`,
  `BaseRClassifier`, `BaseDRRegressor`, `BaseDRClassifier`, `LRSRegressor`,
  `XGBTRegressor`, `XGBTClassifier`, `MLPTRegressor`, `XGBRRegressor`,
  `XGBRClassifier`, and `XGBDRRegressor`.
- **TMLE, IV, DRIV, and persistence**: use
  [references/iv-tmle-serialization.md](references/iv-tmle-serialization.md).
  The current IV entry point is `IVRegressor`; the current DRIV entry points are
  `BaseDRIVLearner`, `BaseDRIVRegressor`, and `XGBDRIVRegressor`.
- **Input contracts and migration details**: use
  [references/api-contracts.md](references/api-contracts.md) before writing code
  that passes `treatment`, `y`, `p`, `assignment`, `w`, or `pZ`.
- **Error diagnosis**: use [references/troubleshooting.md](references/troubleshooting.md).

## Cross-route to sibling sub-skills

- Use [../tree-models/](../tree-models/) for `CausalTreeRegressor`,
  `CausalRandomForestRegressor`, `UpliftTreeClassifier`,
  `UpliftRandomForestClassifier`, tree fill/prune, and tree visualization.
- Use [../deep-models/](../deep-models/) for TensorFlow, Torch/Pyro, or JAX
  neural estimators such as DragonNet and CEVAE.
- Use [../analysis-and-decision/](../analysis-and-decision/) for AUUC/Qini/gain
  curves, validation scoring, sensitivity analysis, feature selection, policy
  learning, and counterfactual value optimization.
- Use [../data-preparation/](../data-preparation/) for synthetic data,
  propensity-model construction, matching, feature utilities, and matched-data QA.

## Always apply these defaults

1. Prefer keyword arguments for all public estimator calls:
   `fit(X=X, treatment=treatment, y=y, ...)`, not positional
   `fit(X, treatment, y, ...)`.
2. Check `control_name` and treatment labels before fitting. Output columns are
   ordered as `learner.t_groups`, which is the sorted set of non-control
   treatment groups.
3. Treat `p` as a strict probability contract: values must be inside `(0, 1)`,
   arrays/Series are only for a single non-control group, and multi-treatment
   runs need dictionaries keyed by treatment group.
4. Use `fit_predict` only on learners that expose it. `TMLELearner` exposes
   `estimate_ate` but not `fit_predict`; `IVRegressor` exposes `fit` and
   `predict`; DRIV learners expose both `fit_predict` and `estimate_ate`.
5. Keep persistence on fitted learners: `learner.save(path)`,
   `ClassName.load(path)`, or generic `load_learner(path)`. Do not assume
   `save_model` or `load_model` functions exist for these classical estimators.

Files in this skill

  • SKILL.md3.2 KB
  • references/api-contracts.md7.9 KB
  • references/iv-tmle-serialization.md6.3 KB
  • references/meta-learners.md9.3 KB
  • references/troubleshooting.md7.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.