pub struct TreatmentEffect {
pub ate: f64,
pub ate_treated: f64,
pub ate_control: f64,
pub estimator: String,
pub n_samples: usize,
pub confidence_interval: Option<(f64, f64)>,
}Expand description
Result of an average treatment effect estimation.
Fields§
§ate: f64Average treatment effect: E[Y | do(T=1)] − E[Y | do(T=0)].
ate_treated: f64Average treatment effect on the treated subgroup (ATT).
ate_control: f64Average treatment effect on the control subgroup (ATC).
estimator: StringEstimation method used: "backdoor", "frontdoor", or "iv".
n_samples: usizeNumber of samples used.
confidence_interval: Option<(f64, f64)>Bootstrap 95% confidence interval, if computed.
Trait Implementations§
Source§impl Clone for TreatmentEffect
impl Clone for TreatmentEffect
Source§fn clone(&self) -> TreatmentEffect
fn clone(&self) -> TreatmentEffect
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TreatmentEffect
impl RefUnwindSafe for TreatmentEffect
impl Send for TreatmentEffect
impl Sync for TreatmentEffect
impl Unpin for TreatmentEffect
impl UnsafeUnpin for TreatmentEffect
impl UnwindSafe for TreatmentEffect
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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