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:
- tilts
IPSISet The evaluated tilts to report on.
- treatment
ndarray (n,)observed treatment, in arm codes.- levelssequence
The treatment labels in arm-code order, which key the reported factors.
- absolute_score_weights
ndarrayorNone Fitted
abs(w_i * H_ij)columns, in tilt order.Nonerecords an omission.- equations
tupleofstr Fitted outcome score-equation names, in tilt order.
- n_repeats
int Number of stored cross-fitting draws. The retained weights describe draw 1.
- tilts
- Returns:
dictofstrtoIncrementalSupportOne record per tilt, keyed by its report label.