pub enum ObservationSpec {
Complete,
RightCensored {
latent: VariableId,
observed: VariableId,
censoring: VariableId,
event: VariableId,
},
LeftCensored {
latent: VariableId,
observed: VariableId,
censoring: VariableId,
event: VariableId,
},
IntervalCensored {
latent: VariableId,
lower: VariableId,
upper: VariableId,
},
Truncated {
latent: VariableId,
observed: VariableId,
lower: Option<VariableId>,
upper: Option<VariableId>,
},
Selected {
latent: VariableId,
observed: VariableId,
indicator: VariableId,
},
}Expand description
How a scientific outcome entered the observed dataset.
Variants§
Complete
Outcome is completely observed.
RightCensored
Right-censored continuous outcome.
Fields
latent: VariableIdScientific latent outcome.
observed: VariableIdRecorded minimum of the latent outcome and censoring value.
censoring: VariableIdCensoring value.
event: VariableIdEvent/uncensored indicator.
LeftCensored
Left-censored continuous outcome.
Fields
latent: VariableIdScientific latent outcome.
observed: VariableIdRecorded maximum of the latent outcome and censoring value.
censoring: VariableIdCensoring value.
event: VariableIdEvent/uncensored indicator.
IntervalCensored
Interval-censored continuous outcome.
Fields
latent: VariableIdScientific latent outcome.
lower: VariableIdObserved lower endpoint.
upper: VariableIdObserved upper endpoint.
Truncated
Sampling truncation with optional row-specific bounds.
Fields
latent: VariableIdScientific latent outcome.
observed: VariableIdRecorded outcome among sampled units.
lower: Option<VariableId>Optional lower truncation bound.
upper: Option<VariableId>Optional upper truncation bound.
Selected
Outcome observed only when an indicator is one.
Fields
latent: VariableIdScientific latent outcome.
observed: VariableIdRecorded outcome (valid only on selected rows).
indicator: VariableIdObservation/selection indicator.
Trait Implementations§
Source§impl Clone for ObservationSpec
impl Clone for ObservationSpec
Source§fn clone(&self) -> ObservationSpec
fn clone(&self) -> ObservationSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more