pub struct Qte { /* private fields */ }Expand description
Treatment effects on quantiles (or CVaRs), as DoubleML’s DoubleMLQTE: for
every τ, the potential quantiles of treatment 1 and 0 are fitted on the
same sample splits and their difference is the effect, with joint
inference across all quantiles.
Implementations§
Source§impl Qte
impl Qte
Sourcepub fn pq(
ml_g: impl Classifier + 'static,
ml_m: impl Classifier + 'static,
quantiles: Vec<f64>,
) -> Self
pub fn pq( ml_g: impl Classifier + 'static, ml_m: impl Classifier + 'static, quantiles: Vec<f64>, ) -> Self
Effects on quantiles (potential quantiles, Pq).
Sourcepub fn lpq(
ml_g: impl Classifier + 'static,
ml_m: impl Classifier + 'static,
quantiles: Vec<f64>,
) -> Self
pub fn lpq( ml_g: impl Classifier + 'static, ml_m: impl Classifier + 'static, quantiles: Vec<f64>, ) -> Self
Effects on compliers’ quantiles (local potential quantiles, Lpq).
Sourcepub fn cvar(
ml_g: impl Regressor + 'static,
ml_m: impl Classifier + 'static,
quantiles: Vec<f64>,
) -> Self
pub fn cvar( ml_g: impl Regressor + 'static, ml_m: impl Classifier + 'static, quantiles: Vec<f64>, ) -> Self
Effects on the conditional value at risk (Cvar).
Sourcepub fn from_boxed(
score: &str,
ml_g_classifier: Option<Box<dyn Classifier>>,
ml_g_regressor: Option<Box<dyn Regressor>>,
ml_m: Box<dyn Classifier>,
quantiles: Vec<f64>,
) -> Result<Self>
pub fn from_boxed( score: &str, ml_g_classifier: Option<Box<dyn Classifier>>, ml_g_regressor: Option<Box<dyn Regressor>>, ml_m: Box<dyn Classifier>, quantiles: Vec<f64>, ) -> Result<Self>
Boxed learners, e.g. from Python: score is "PQ", "LPQ" or "CVaR";
for "CVaR" pass ml_g_regressor, otherwise ml_g_classifier.
Sourcepub fn clipping_threshold(self, t: f64) -> Self
pub fn clipping_threshold(self, t: f64) -> Self
Propensity scores are clipped to [t, 1 − t] (default t = 0.01).
Sourcepub fn calibration(self, calibration: Calibration) -> Self
pub fn calibration(self, calibration: Calibration) -> Self
Calibrate the propensity scores before clipping (default: none), as
DoubleML’s ps_processor_config.
Sourcepub fn normalize_ipw(self, normalize: bool) -> Self
pub fn normalize_ipw(self, normalize: bool) -> Self
Normalise the inverse-probability weights (default true).
Auto Trait Implementations§
impl !RefUnwindSafe for Qte
impl !UnwindSafe for Qte
impl Freeze for Qte
impl Send for Qte
impl Sync for Qte
impl Unpin for Qte
impl UnsafeUnpin for Qte
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more