cleverly.ControlledDirectEffect#
- class cleverly.ControlledDirectEffect(intermediate: float, contrast: ~cleverly.study.ATE | ~cleverly.study.ATT | ~cleverly.study.ATC | ~cleverly.study.RiskRatio | ~cleverly.study.OddsRatio = <factory>)[source]#
Compare treatments while fixing a binary intermediate variable.
- Parameters:
See also
ATEThe same contrast with nothing held fixed.
cleverly.PointTreatmentWhere the
intermediatecolumn is declared.cleverly.datasets.make_cdeA process with a known controlled direct effect.
Examples
>>> from cleverly import ATE, ControlledDirectEffect >>> estimand = ControlledDirectEffect(intermediate=0.0, contrast=ATE()) >>> estimand.intermediate 0.0
Methods#
Attributes#
- ControlledDirectEffect.definition#
Return the controlled-direct-effect definition.