cleverly.interventions.check_incremental_support#

cleverly.interventions.check_incremental_support(tilts: IPSISet, treatment: ndarray[tuple[Any, ...], dtype[float64]], *, levels: Sequence[Any], absolute_score_weights: ndarray[tuple[Any, ...], dtype[float64]] | None = None, equations: tuple[str, ...] = (), n_repeats: int = 1) → dict[str, IncrementalSupport][source]#

Per-tilt overlap, in the vocabulary the other two axes’ reports use.

Reports the bound alongside the realised maximum because for this estimand the bound is the interesting number: it holds whatever the mechanism does, which is what distinguishes the tilt from every other intervention here. An arm-indexed fit on the same data would divide by min_propensity; this one never does.

Parameters:
tiltsIPSISet

The evaluated tilts to report on.

treatmentndarray

(n,) observed treatment, in arm codes.

levelssequence

The treatment labels in arm-code order, which key the reported factors.

absolute_score_weightsndarray or None

Fitted abs(w_i * H_ij) columns, in tilt order. None records an omission.

equationstuple of str

Fitted outcome score-equation names, in tilt order.

n_repeatsint

Number of stored cross-fitting draws. The retained weights describe draw 1.

Returns:
dict of str to IncrementalSupport

One record per tilt, keyed by its report label.