pub struct Simulated {
pub x: Array2<f64>,
pub y: Array1<f64>,
pub d: Array1<f64>,
pub z: Option<Array2<f64>>,
pub s: Option<Array1<f64>>,
pub t: Option<Array1<f64>>,
pub clusters: Option<Array2<i64>>,
}Expand description
A simulated cross-section: covariates x, outcome y, treatment d and,
depending on the design, instruments z, a selection indicator s, a
time indicator t or cluster labels (one column per clustering).
Fields§
§x: Array2<f64>§y: Array1<f64>§d: Array1<f64>§z: Option<Array2<f64>>§s: Option<Array1<f64>>§t: Option<Array1<f64>>§clusters: Option<Array2<i64>>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Simulated
impl RefUnwindSafe for Simulated
impl Send for Simulated
impl Sync for Simulated
impl Unpin for Simulated
impl UnsafeUnpin for Simulated
impl UnwindSafe for Simulated
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