pub struct StaticPanel { /* private fields */ }Expand description
A static panel in long format: one row per unit id and period t.
Implementations§
Source§impl StaticPanel
impl StaticPanel
Sourcepub fn new(
y: Array1<f64>,
d: Array1<f64>,
x: Array2<f64>,
id: Array1<i64>,
t: Array1<f64>,
) -> Result<Self>
pub fn new( y: Array1<f64>, d: Array1<f64>, x: Array2<f64>, id: Array1<i64>, t: Array1<f64>, ) -> Result<Self>
One treatment.
Sourcepub fn with_treatments(
y: Array1<f64>,
d: Array2<f64>,
x: Array2<f64>,
id: Array1<i64>,
t: Array1<f64>,
) -> Result<Self>
pub fn with_treatments( y: Array1<f64>, d: Array2<f64>, x: Array2<f64>, id: Array1<i64>, t: Array1<f64>, ) -> Result<Self>
Several treatments, one per column of d.
pub fn with_treatment_names(self, names: Vec<String>) -> Result<Self>
Sourcepub fn with_external_predictions(self, external: ExternalPredictions) -> Self
pub fn with_external_predictions(self, external: ExternalPredictions) -> Self
External nuisance predictions for the rows of the transformed panel
(Plpr::transform), as DoubleML.
pub fn n_obs(&self) -> usize
Trait Implementations§
Source§impl Clone for StaticPanel
impl Clone for StaticPanel
Auto Trait Implementations§
impl Freeze for StaticPanel
impl RefUnwindSafe for StaticPanel
impl Send for StaticPanel
impl Sync for StaticPanel
impl Unpin for StaticPanel
impl UnsafeUnpin for StaticPanel
impl UnwindSafe for StaticPanel
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