cleverly.IncrementalEffect#
- class cleverly.IncrementalEffect(interventions: Sequence[Incremental], reference: str | None = None, horizons: Sequence[int] | None = None)[source]#
Compare incremental propensity-score interventions.
- Parameters:
See also
IncrementalMeanThe intervention means this contrast is taken between.
cleverly.interventions.IncrementalThe odds multiplier an intervention applies.
ATEThe same comparison for a treatment set to a fixed level.
Examples
Double the odds of treatment, and compare that against halving them:
>>> from cleverly import IncrementalEffect >>> from cleverly.interventions import Incremental >>> estimand = IncrementalEffect( ... interventions=[ ... Incremental(delta=0.5, name="halved"), ... Incremental(delta=2.0, name="doubled"), ... ], ... reference="halved", ... ) >>> estimand.reference 'halved'
Methods#
Attributes#
- IncrementalEffect.interventions: Sequence[Incremental]#