cleverly.interventions.DoseQuantile#
- class cleverly.interventions.DoseQuantile(q: float, bandwidth: Literal['silverman', 'undersmoothed'] = 'silverman')[source]#
The cap at a quantile of the natural dose among the units at risk.
Shift(1.0, cap=DoseQuantile(0.5), target="population")moves every dose up by one, except a dose whose move would pass the at-risk median. The quantile is a finite-dimensional tuner, so both declared targets apply.- Parameters:
- q
float The level, in
(0, 1).- bandwidth{“silverman”, “undersmoothed”}
The kernel bandwidth of the at-risk density and of the derivative of the mean: Silverman’s rule, or half of it.
- q