pub struct InterferenceQuery {
pub assignment: AssignmentDesign,
pub exposure: ExposureMapping,
pub functional: InterferenceFunctional,
pub probability_draws: u32,
}Expand description
Assignment design + exposure mapping + estimand.
Fields§
§assignment: AssignmentDesignKnown random assignment design.
exposure: ExposureMappingExposure mapping.
functional: InterferenceFunctionalRequested contrast.
probability_draws: u32Monte Carlo assignments used when exposure probabilities are not analytic.
Implementations§
Source§impl InterferenceQuery
impl InterferenceQuery
Sourcepub fn new(
assignment: AssignmentDesign,
exposure: ExposureMapping,
functional: InterferenceFunctional,
) -> Self
pub fn new( assignment: AssignmentDesign, exposure: ExposureMapping, functional: InterferenceFunctional, ) -> Self
Construct with 10,000 exposure-probability simulations when required.
Sourcepub fn validate(&self) -> Result<(), QueryError>
pub fn validate(&self) -> Result<(), QueryError>
Validate design probabilities, exposure levels, and simulation budget.
§Errors
QueryError::InvalidInterference when any design or exposure value is invalid.
Trait Implementations§
Source§impl Clone for InterferenceQuery
impl Clone for InterferenceQuery
Source§fn clone(&self) -> InterferenceQuery
fn clone(&self) -> InterferenceQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InterferenceQuery
impl Debug for InterferenceQuery
Source§impl From<InterferenceQuery> for CausalQuery
impl From<InterferenceQuery> for CausalQuery
Source§fn from(query: InterferenceQuery) -> Self
fn from(query: InterferenceQuery) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InterferenceQuery
impl PartialEq for InterferenceQuery
impl StructuralPartialEq for InterferenceQuery
Auto Trait Implementations§
impl Freeze for InterferenceQuery
impl RefUnwindSafe for InterferenceQuery
impl Send for InterferenceQuery
impl Sync for InterferenceQuery
impl Unpin for InterferenceQuery
impl UnsafeUnpin for InterferenceQuery
impl UnwindSafe for InterferenceQuery
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