unified_sensitivity
Run every applicable sensitivity analysis in one shot—E-value, Oster's delta, Rosenbaum Gamma, Sensemakr—on a fitted causal estimate to assess robustness to unobserved confounding.
Instructions
Run every applicable sensitivity analysis in one shot: E-value, Oster delta (when R^2 inputs given), Rosenbaum Gamma (when matched_pairs outcomes exposed), Sensemakr (when raw data supplied via data/y/treat/controls), and a breakdown-frontier bias estimate. Also available as result.sensitivity(). Assumptions: Dashboard that dispatches every applicable sensitivity method (E-value, Cinelli-Hazlett RV, Oster's delta) to one fitted result; Oster's delta requires the short- and long-regression R-squared (r2_treated, r2_controlled) plus beta_uncontrolled; rho_max is Oster's R_max bound (default 1.0); The Sensemakr component needs the raw estimation data via data/y/treat/controls; result objects do not carry it, so it is skipped (with a note) when those are omitted. Pre-conditions: A result with point estimate, SE, and CI attributes; r2_treated and r2_controlled for the Oster's-delta component. Failure modes: Result lacks estimate/se/ci, so no sensitivity component can be computed -> Pass a fitted result exposing estimate, se, and ci rather than a raw scalar or DataFrame; Oster's delta omitted because r2_treated / r2_controlled were not provided -> Pass the short- and long-regression R-s...
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| y | No | Outcome variable column name or outcome array. | |
| treat | No | Treatment indicator or first-treatment-period column. | |
| detail | No | Payload depth: 'minimal' (~150 tokens) for sub-step calls where only the point estimate is needed; 'standard' (~1K tokens) for diagnostics + coefficient table; 'agent' (~2K tokens, default) adds violations / next_steps / suggested_functions so the LLM can plan its next call without another round-trip. | agent |
| result | Yes | result parameter (CausalResult | EconometricResults). | |
| rho_max | No | rho_max parameter (float). | |
| controls | No | Control-variable column names. | |
| as_handle | No | If true, cache the fitted result on the server and return result_id + result_uri alongside the JSON payload so a subsequent tools/call can chain without re-running. | |
| data_path | No | Absolute path or URL to a data file. Supported: .csv / .tsv / .txt (delimited), .parquet / .pq, .feather / .arrow, .xlsx / .xls, .dta (Stata), .json / .jsonl. Schemes: file://, s3://, gs://, https://. | |
| result_id | No | Optional handle to a previously-fitted result (returned by an earlier call when as_handle=true). Tools that operate on a fitted object accept this in place of re-supplying data_path + columns. | |
| r2_treated | No | r2_treated parameter (float). | |
| data_columns | No | Optional column projection. Parquet/Feather/Stata loaders honour this for fast partial reads. | |
| data_sample_n | No | Optional uniform random subsample size (seed=0, deterministic) — useful on huge panels. | |
| include_oster | No | Whether to include oster. | |
| r2_controlled | No | r2_controlled parameter (float). | |
| beta_uncontrolled | No | beta_uncontrolled parameter (float). | |
| include_rosenbaum | No | Whether to include rosenbaum. | |
| include_sensemakr | No | Whether to include sensemakr. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||