pub struct DidSz2020 {
pub n_obs: usize,
pub dgp_type: u8,
pub xi: f64,
pub c: f64,
pub lambda_t: f64,
}Expand description
Sant’Anna and Zhao (2020): two periods, a binary treatment and the
transformed covariates Z. generate gives a panel (y = Y₁ − Y₀);
generate_cross_sections repeated cross-sections with a time indicator.
Fields§
§n_obs: usize§dgp_type: u8§xi: f64§c: f64§lambda_t: f64Share of post-period observations (cross-sections).
Implementations§
Source§impl DidSz2020
impl DidSz2020
Sourcepub fn generate(&self, seed: u64) -> Result<Simulated>
pub fn generate(&self, seed: u64) -> Result<Simulated>
A two-period panel: covariates z, treatment and the outcome change.
Sourcepub fn generate_cross_sections(&self, seed: u64) -> Result<Simulated>
pub fn generate_cross_sections(&self, seed: u64) -> Result<Simulated>
Repeated cross-sections: each unit is observed once, in the post
period (t = 1) with probability lambda_t.
Trait Implementations§
impl StructuralPartialEq for DidSz2020
Auto Trait Implementations§
impl Freeze for DidSz2020
impl RefUnwindSafe for DidSz2020
impl Send for DidSz2020
impl Sync for DidSz2020
impl Unpin for DidSz2020
impl UnsafeUnpin for DidSz2020
impl UnwindSafe for DidSz2020
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