pub struct DidCs2021 {
pub n_obs: usize,
pub dgp_type: u8,
pub include_never_treated: bool,
pub c: f64,
pub xi: f64,
pub n_periods: usize,
pub anticipation_periods: usize,
pub n_pre_treat_periods: usize,
}Expand description
Callaway and Sant’Anna (2021): staggered adoption over n_periods
periods, with cohorts first treated from period n_pre_treat_periods
on, dynamic and heterogeneous effects, unit and time effects.
Fields§
§n_obs: usize§dgp_type: u8§include_never_treated: bool§c: f64§xi: f64§n_periods: usize§anticipation_periods: usize§n_pre_treat_periods: usizeImplementations§
Source§impl DidCs2021
impl DidCs2021
Sourcepub fn generate(&self, seed: u64) -> Result<SimulatedStaggered>
pub fn generate(&self, seed: u64) -> Result<SimulatedStaggered>
The panel (make_did_CS2021 with time_type="float").
Sourcepub fn generate_cross_sections(
&self,
seed: u64,
lambda_t: f64,
) -> Result<SimulatedStaggered>
pub fn generate_cross_sections( &self, seed: u64, lambda_t: f64, ) -> Result<SimulatedStaggered>
Repeated cross-sections (make_did_cs_CS2021): a panel of
⌈n_obs / lambda_t⌉ units of which each row is kept with
probability lambda_t.
Trait Implementations§
impl StructuralPartialEq for DidCs2021
Auto Trait Implementations§
impl Freeze for DidCs2021
impl RefUnwindSafe for DidCs2021
impl Send for DidCs2021
impl Sync for DidCs2021
impl Unpin for DidCs2021
impl UnsafeUnpin for DidCs2021
impl UnwindSafe for DidCs2021
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