Estimate threshold policy effect rdd
Estimate a local sharp or fuzzy regression-discontinuity effect for threshold-assigned policies, with weak-first-stage, density-manipulation, placebo, and bootstrap diagnostics.
What it's for
Recovers local causal evidence when an operational score or governed rule changes intervention probability at a cutoff, while forcing explicit abstention on weak or suspicious designs.
What you give it
Inputs split into evidence read from your connected systems, calibration your team owns, and numerical controls that affect precision but never the result's meaning.
| Field | Type | Role | Required |
|---|---|---|---|
| bandwidth | number > 0 | Your calibration | Optional |
| bootstrap_draws | integer ≥ 200, ≤ 20000 | Numerical control | Optional |
| confidence_level | number ≥ 0.8, ≤ 0.999 | Your calibration | Optional |
| cutoff | number | Your calibration | Yes |
| minimum_first_stage | number ≥ 0.01, ≤ 1 | Your calibration | Optional |
| minimum_practical_effect | number ≥ 0 | Your calibration | Optional |
| observations | array of objects (4 fields) ≥ 200 items | Evidence | Yes |
| placebo_cutoffs | integer ≥ 0, ≤ 20 | Your calibration | Optional |
| seed | integer | Numerical control | Optional |
Each observations
record
| Field | Type | Required |
|---|---|---|
| id | string (non-empty) | Yes |
| outcome | number | Yes |
| running_value | number | Yes |
| treatment | integer (≥ 0, ≤ 1) | Yes |
{
"bandwidth": 0.8,
"bootstrap_draws": 200,
"cutoff": 0,
"observations": [
{
"id": "rdd-example-0",
"outcome": -1,
"running_value": -2,
"treatment": 0
},
{
"id": "rdd-example-1",
"outcome": -0.9849874686716792,
"running_value": -1.9899749373433584,
"treatment": 0
},
{
"id": "rdd-example-2",
"outcome": -0.9699749373433584,
"running_value": -1.9799498746867168,
"treatment": 0
},
{
"id": "rdd-example-3",
"outcome": -0.9549624060150376,
"running_value": -1.9699248120300752,
"treatment": 0
},
{
"id": "rdd-example-4",
"outcome": -0.9399498746867168,
"running_value": -1.9598997493734336,
"treatment": 0
},
{
"id": "rdd-example-5",
"outcome": -0.924937343358396,
"running_value": -1.949874686716792,
"treatment": 0
},
{
"id": "rdd-example-6",
"outcome": -0.9099248120300751, Truncated for display — the full payload is 2408 lines.
What you get back
This is the actual output of running the example above — computed by the same function the platform calls, not an illustration.
{
"assumptions": [
"Potential outcomes are continuous through the cutoff, while treatment probability changes discontinuously there; the estimand is local to threshold compliers.",
"Units cannot precisely manipulate the running variable around the cutoff; the count diagnostic is a warning screen, not a definitive density test.",
"The cutoff, running variable, outcome, bandwidth policy, and placebo locations should be prespecified before inspecting effects.",
"The ratio estimate is withheld for a weak or bootstrap-unstable first stage, and a density warning overrides an otherwise favorable effect decision."
],
"decision": "threshold_policy_effect_robustly_positive",
"density_diagnostic": {
"left_rows": 20,
"manipulation_warning": false,
"p_value": 1,
"right_rows": 20,
"window": 0.2,
"z_score": 0
},
"first_stage": {
"clears_minimum": true,
"design_kind": "sharp",
"minimum_required": 0.1,
"treatment_probability_jump": 1
},
"local_effect": {
"confidence_level": 0.95,
"estimate": 1.503,
"interval": {
"high": 1.5181,
"low": 1.4905
},
"minimum_practical_effect": 0
},
"method": "local_linear_triangular_fuzzy_rdd_v1",
"placebo_diagnostics": {
"actual_to_maximum_placebo_ratio": 127.3759,
"cutoffs": [
{
"cutoff": -1.2,
"left_rows": 40,
"outcome_jump": 0.0058,
"right_rows": 40
},
{
"cutoff": -0.6,
"left_rows": 40, Truncated for display — the full payload is 79 lines.
How it works
Constrained optimization — Pick the best feasible option under real limits — budget, headcount, dependencies, capacity — rather than ranking a list and hoping it fits.
- 1 Estimate a local sharp or fuzzy regression-discontinuity effect for threshold-assigned policies, with weak-first-stage, density-manipulation, placebo, and bootstrap diagnostics.
- 2 Evaluate the method-specific diagnostics and gates returned by the function, then abstain unless the declared decision clears them under locally governed thresholds.
Before you trust it
Every tool in the catalog ships with the conditions under which its answer is meaningful — and the conditions under which it should abstain instead of guessing.
Assumptions & guardrails
- Objectives use commensurable locally governed value units, constraints reflect real feasibility, and uncertainty covers plausible adverse inputs.
- The recommendation is optimal only for its stated objective, feasible set, evidence, and solver guarantee; it is not a universal management optimum.
Minimum evidence
- observations: at least 200 rows/items
- cutoff: required and organization-defined
How to validate it
Preserve the assignment/adoption design and validate overlap, pre-period or placebo diagnostics, attrition, interference policy, and cluster-level uncertainty; never tune on the estimated effect.
Calibrating it to your org
Same for everyone
The mathematical kernel, validation rules, method version, and JSON output semantics are organization-independent; no tenant-trained coefficients or company benchmark is embedded in the function.
Specific to you
- one row per eligible assignment
- outcome joined only after its prespecified observation window
- policy cutoff and score version
- bandwidth policy and minimum first-stage jump
- outcome, practical effect, exclusions, and placebo cutoffs
Calibration workflow
- 1 Define the management decision, target outcome, aggregate unit, privacy boundary, cadence, and prediction/intervention horizon for this organization.
- 2 Build a tenant-scoped historical cohort using only information available before each prediction or decision; preserve zero periods, censoring, assignment probabilities, and unresolved outcomes when the method requires them.
- 3 Estimate statistical parameters on training history, but obtain costs, utilities, risk tolerance, practical-effect thresholds, capacity, and policy constraints from accountable decision owners.
- 4 Validate on later time windows or held-out aggregate units at the deployment grain, against a simple baseline and the function-specific validation strategy.
- 5 Deploy only if the returned decision clears evidence, overlap, calibration, robustness, and guardrail checks; warning, unsupported, schema-gap, and fallback decisions are abstentions.
- 6 Monitor realized outcomes, data drift, coverage, and decision regret; recalibrate at a governed cadence or after a detected regime/definition change, never merely because a stakeholder dislikes the result.
Call it from your AI
You don't wire up 388 tools in your MCP client. The GitRevio MCP server exposes 18 tools, three of which let an agent search the catalog, read a tool's schema, and run it — so the assistant finds this one on its own.
gitrevio_capabilities_search
{ "q": "estimate a local sharp or fuzzy" }
→ finds "estimate_threshold_policy_effect_rdd"
gitrevio_capability_describe
{ "capability_id": "estimate_threshold_policy_effect_rdd" }
→ returns the input schema and agent guidance shown on this page
gitrevio_capability_run
{ "capability_id": "estimate_threshold_policy_effect_rdd", "arguments": { ... } }
→ returns the result shown above Works in Claude Desktop, Claude Code, Cursor, Cline, Continue.dev, Goose and Aider. See the MCP server.
Related tools
Audit causal claim negative controls
Gate a causal effect claim using prespecified negative outcome/exposure controls, Benjamini-Hochberg multiplicity control, and an omnibus chi-square falsification test.
Audit cluster randomization integrity
Audit cluster-randomized experiments for practical baseline imbalance and differential outcome observation, with cluster-size-weighted standardized differences and assignment permutation diagnostics.
Audit growth incrementality experiment integrity
Audit aggregate randomized growth experiments before anyone trusts channel incrementality: enforce unique experimental units, nondegenerate logged propensities, both arms, control-spend discipline, baseline balance, spillover and evidence gates; then estimate propensity-weighted baseline-adjusted contribution, cluster-unit bootstrap uncertainty and incremental return on spend.
Audit joint outcome network integrity
Audit whether a company-specific Bayesian joint-outcome network is fit for reliance by validating point-in-time lineage, DAG and CPT completeness, effective support, protected-attribute exclusions, and strictly out-of-time outcome calibration against a baseline.
Audit staggered rollout identification
Audit staggered team-by-team adoption with not-yet-treated controls and require every simultaneous pre-period interval to fit inside a governed equivalence margin.
Design balanced stepped wedge rollout
Assign teams or other aggregate clusters to capacity-constrained rollout waves with pair-exchange optimization of cumulative causal balance, represented population, and rollout risk.