cleverly.interventions.Static#
- class cleverly.interventions.Static(level: Any, name: str = '')[source]#
Set the treatment to one level for everybody: \(g^\star = \mathbb 1\{a = v\}\).
The degenerate regime, and the one the arm-keyed path has always estimated. It is here for two reasons beyond completeness: it is the reference a rule is usually contrasted against, and a fit whose regimes are all
Staticmust reproduce the ordinary arm fit exactly, which is whattests/unit/test_regimes.pyasserts.- Parameters:
- level
Any The treatment level to assign to every row, as the caller spells it.
- name
str Label used in reported parameter names. Empty builds
"always <level>".
- level
- Attributes:
density_kind{“known”, “estimated”}orNone"known"when the exact type isStatic, andNonefor a subclass.
Methods#
Attributes#
- Static.density_kind#
"known"when the exact type isStatic, andNonefor a subclass.A level is not a function of the sample, so
Staticneeds no declaration. A subclass can overridedensity(), so it reads as undeclared, by the exact-type rule thatMSM.linearalso follows, until it declaresdensity_kinditself.