cleverly.interventions.RegimeSupport#
- class cleverly.interventions.RegimeSupport(name: str, min_support_propensity: float, ratio_quantiles: dict[float, float], max_ratio: float, effective_sample_size: float, ess_ratio: float, tail_mass: dict[float, float], unsupported: int, score_load: _InterventionLoadRow | None = None, score_load_omission: str | None = None)[source]#
Overlap for one regime.
- Parameters:
- name
str Report label of the regime.
- min_support_propensity
float The smallest \(g_a(W_i)\) over the rows and arms the regime puts mass on. For a deterministic rule that is \(\min_i g_{d(W_i)}(W_i)\), the number a reader of a dynamic regime wants first.
- ratio_quantiles
dictoffloattofloat Quantiles of the density ratio \(g^\star(A \mid W)/g(A \mid W)\) at the observed treatment – the clever covariate’s magnitude, before the missingness and intermediate mechanisms enter it.
- max_ratio
float The largest such ratio: how much one row can move the estimate.
- effective_sample_size
float Kish ESS of those ratios, and
ess_ratioits share ofn. A regime far from the observed mechanism throws away information even when nothing is formally violated, and this is the size of that loss.- ess_ratio
float The effective sample size as a share of
n.- tail_mass
dictoffloattofloat Fraction of rows whose assigned-arm propensity falls below each threshold.
- unsupported
int Rows where the regime assigns positive probability to an arm with an estimated propensity of exactly zero – a structural violation rather than a practical one. The parameter is not identified for those rows at all.
- score_load
_InterventionLoadRoworNone Concentration of the fitted
abs(w_i * H_ij)values for this regime’s score equation, and the cross-fitting draw it describes.Nonemeans the fitted artifact cannot supply the exact values. The twelve keys areequation,n_total,n_targeted,effective,targeted_ratio,total_ratio,top_1pct,top_5pct,max_load,zero_load,reported_repeatandn_repeats.- score_load_omission
strorNone Machine-readable reason why
score_loadis unavailable.
- name