pub struct ConfoundedPlr {
pub n_obs: usize,
pub theta: f64,
pub cf_y: f64,
pub cf_d: f64,
pub c: f64,
pub dim_x: usize,
}Expand description
A partially linear model with an unobserved confounder A of given
strength (cf_y, cf_d), as make_confounded_plr_data, for sensitivity
analysis. ConfoundedPlrSimulated::oracle holds the long and short
regressions and the confounder.
Fields§
§n_obs: usize§theta: f64§cf_y: f64§cf_d: f64§c: f64Correlation parameter of the covariates (c^|i−j|).
dim_x: usizeImplementations§
Source§impl ConfoundedPlr
impl ConfoundedPlr
pub fn generate(&self, seed: u64) -> Result<ConfoundedPlrSimulated>
Trait Implementations§
Source§impl Clone for ConfoundedPlr
impl Clone for ConfoundedPlr
Source§impl Debug for ConfoundedPlr
impl Debug for ConfoundedPlr
Source§impl Default for ConfoundedPlr
impl Default for ConfoundedPlr
Source§impl PartialEq for ConfoundedPlr
impl PartialEq for ConfoundedPlr
impl StructuralPartialEq for ConfoundedPlr
Auto Trait Implementations§
impl Freeze for ConfoundedPlr
impl RefUnwindSafe for ConfoundedPlr
impl Send for ConfoundedPlr
impl Sync for ConfoundedPlr
impl Unpin for ConfoundedPlr
impl UnsafeUnpin for ConfoundedPlr
impl UnwindSafe for ConfoundedPlr
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