cleverly.estimators.atmle_result.AdaptiveTMLESupport#
- class cleverly.estimators.atmle_result.AdaptiveTMLESupport(n: int, n_trial: int, n_external: int, n_external_treated: int, controls_only: bool, external_source_min: float, external_source_quantiles: tuple[float, float, float], external_source_below_floor: float, trial_row_treatment_range: tuple[float, float], floor: float = 0.01, population: Literal['trial', 'pooled'] = 'pooled')[source]#
How well the trial covers the external rows, and the treatment range in the trial.
The effect averaged over every row is defined only where
P(S = 1 | W) > 0(assumption A3). The source gives no floor, so the report reads the cross-fittedpi(W)on the external rows againstSOURCE_FLOORand does not refuse. The effect averaged over the trial rows does not need A3, soadequateis then true and the shares are information only.- Parameters:
- n
int Rows.
- n_trial
int Trial rows.
- n_external
int External rows.
- n_external_treated
int External rows with the treated arm.
- controls_onlybool
Whether the external rows hold controls only.
- external_source_min
float The smallest cross-fitted
P(S = 1 | W)on an external row, before bounds.- external_source_quantiles
tupleoffloat Its 5%, 25% and 50% quantiles on the external rows.
- external_source_below_floor
float The share of external rows with
P(S = 1 | W)belowfloor.- trial_row_treatment_range
tupleoffloat The smallest and largest bounded combined-data
P(A = 1 | W)read on the trial rows.- floor
float The reading floor of
P(S = 1 | W).- population{“trial”, “pooled”}
The rows the effect is averaged over.
- n
Methods#
Attributes#
- AdaptiveTMLESupport.adequate#
Whether A3 holds on the reading, which only the combined-rows effect needs.