pub struct SensitivityParams {
pub cf_y: f64,
pub cf_d: f64,
pub rho: f64,
pub level: f64,
pub null_hypothesis: Vec<f64>,
}Expand description
A confounding scenario for DmlFit::sensitivity_analysis.
Fields§
§cf_y: f64§cf_d: f64§rho: f64§level: f64§null_hypothesis: Vec<f64>One null hypothesis per treatment, or a single value for all.
Implementations§
Source§impl SensitivityParams
impl SensitivityParams
pub fn new() -> Self
Sourcepub fn cf_y(self, cf_y: f64) -> Self
pub fn cf_y(self, cf_y: f64) -> Self
Share of the outcome’s residual variation explained by the confounder.
Sourcepub fn cf_d(self, cf_d: f64) -> Self
pub fn cf_d(self, cf_d: f64) -> Self
Relative gain in the Riesz representer’s variation from the confounder.
pub fn null_hypothesis(self, value: f64) -> Self
pub fn null_hypotheses(self, values: Vec<f64>) -> Self
Trait Implementations§
Source§impl Clone for SensitivityParams
impl Clone for SensitivityParams
Source§impl Debug for SensitivityParams
impl Debug for SensitivityParams
Source§impl Default for SensitivityParams
impl Default for SensitivityParams
Source§impl PartialEq for SensitivityParams
impl PartialEq for SensitivityParams
impl StructuralPartialEq for SensitivityParams
Auto Trait Implementations§
impl Freeze for SensitivityParams
impl RefUnwindSafe for SensitivityParams
impl Send for SensitivityParams
impl Sync for SensitivityParams
impl Unpin for SensitivityParams
impl UnsafeUnpin for SensitivityParams
impl UnwindSafe for SensitivityParams
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> 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