pub struct RefutationProblem<'a> {
pub data: &'a TabularData,
pub estimand: &'a IdentifiedEstimand,
pub query: &'a AverageEffectQuery,
pub original: &'a EffectEstimate,
pub estimator: Option<&'a str>,
pub temporal: Option<TemporalRefitContext<'a>>,
}Expand description
Inputs shared by effect refuters.
Fields§
§data: &'a TabularDataTabular data (series storage wrap, or stacked panel rows for mutation).
estimand: &'a IdentifiedEstimandIdentified estimand (backdoor adjustment).
query: &'a AverageEffectQueryAverage-effect query (levels / population).
original: &'a EffectEstimateOriginal point estimate.
estimator: Option<&'a str>Estimator id used for the original fit (e.g. linear.adjustment.ate), when known.
temporal: Option<TemporalRefitContext<'a>>When set, refits use TemporalLinearAdjustment on the lag-aligned design.
Implementations§
Source§impl RefutationProblem<'_>
impl RefutationProblem<'_>
Sourcepub fn treatment(&self) -> VariableId
pub fn treatment(&self) -> VariableId
Treatment variable from the query.
Sourcepub fn outcome(&self) -> VariableId
pub fn outcome(&self) -> VariableId
Outcome variable from the query.
Trait Implementations§
Source§impl<'a> Clone for RefutationProblem<'a>
impl<'a> Clone for RefutationProblem<'a>
Source§fn clone(&self) -> RefutationProblem<'a>
fn clone(&self) -> RefutationProblem<'a>
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 moreimpl<'a> Copy for RefutationProblem<'a>
Source§impl<'a> Debug for RefutationProblem<'a>
impl<'a> Debug for RefutationProblem<'a>
Source§impl<'a> Validator<RefutationProblem<'a>> for PlaceboTreatment
impl<'a> Validator<RefutationProblem<'a>> for PlaceboTreatment
Source§type Prepared = PreparedRefutation<'a>
type Prepared = PreparedRefutation<'a>
Prepared artifact produced by
Self::prepare.Source§type Report = RefutationReport
type Report = RefutationReport
Report produced by
Self::validate.Source§fn prepare(
&self,
artifact: &RefutationProblem<'a>,
_ctx: &ExecutionContext,
) -> Result<Self::Prepared, ValidationError>
fn prepare( &self, artifact: &RefutationProblem<'a>, _ctx: &ExecutionContext, ) -> Result<Self::Prepared, ValidationError>
Compile
artifact into a reusable prepared form. Read moreSource§fn validate(
&self,
prepared: &mut Self::Prepared,
workspace: &mut EstimationWorkspace,
ctx: &ExecutionContext,
) -> Result<Self::Report, ValidationError>
fn validate( &self, prepared: &mut Self::Prepared, workspace: &mut EstimationWorkspace, ctx: &ExecutionContext, ) -> Result<Self::Report, ValidationError>
Run the check on a prepared artifact. Read more
Source§impl<'a> Validator<RefutationProblem<'a>> for RandomCommonCause
impl<'a> Validator<RefutationProblem<'a>> for RandomCommonCause
Source§type Prepared = PreparedRefutation<'a>
type Prepared = PreparedRefutation<'a>
Prepared artifact produced by
Self::prepare.Source§type Report = RefutationReport
type Report = RefutationReport
Report produced by
Self::validate.Source§fn prepare(
&self,
artifact: &RefutationProblem<'a>,
_ctx: &ExecutionContext,
) -> Result<Self::Prepared, ValidationError>
fn prepare( &self, artifact: &RefutationProblem<'a>, _ctx: &ExecutionContext, ) -> Result<Self::Prepared, ValidationError>
Compile
artifact into a reusable prepared form. Read moreSource§fn validate(
&self,
prepared: &mut Self::Prepared,
workspace: &mut EstimationWorkspace,
ctx: &ExecutionContext,
) -> Result<Self::Report, ValidationError>
fn validate( &self, prepared: &mut Self::Prepared, workspace: &mut EstimationWorkspace, ctx: &ExecutionContext, ) -> Result<Self::Report, ValidationError>
Run the check on a prepared artifact. Read more
Source§impl<'a> Validator<RefutationProblem<'a>> for BootstrapRefute
impl<'a> Validator<RefutationProblem<'a>> for BootstrapRefute
Source§type Prepared = PreparedRefutation<'a>
type Prepared = PreparedRefutation<'a>
Prepared artifact produced by
Self::prepare.Source§type Report = RefutationReport
type Report = RefutationReport
Report produced by
Self::validate.Source§fn prepare(
&self,
artifact: &RefutationProblem<'a>,
_ctx: &ExecutionContext,
) -> Result<Self::Prepared, ValidationError>
fn prepare( &self, artifact: &RefutationProblem<'a>, _ctx: &ExecutionContext, ) -> Result<Self::Prepared, ValidationError>
Compile
artifact into a reusable prepared form. Read moreSource§fn validate(
&self,
prepared: &mut Self::Prepared,
workspace: &mut EstimationWorkspace,
ctx: &ExecutionContext,
) -> Result<Self::Report, ValidationError>
fn validate( &self, prepared: &mut Self::Prepared, workspace: &mut EstimationWorkspace, ctx: &ExecutionContext, ) -> Result<Self::Report, ValidationError>
Run the check on a prepared artifact. Read more
Source§impl<'a> Validator<RefutationProblem<'a>> for UnobservedCommonCause
impl<'a> Validator<RefutationProblem<'a>> for UnobservedCommonCause
Source§type Prepared = PreparedRefutation<'a>
type Prepared = PreparedRefutation<'a>
Prepared artifact produced by
Self::prepare.Source§type Report = RefutationReport
type Report = RefutationReport
Report produced by
Self::validate.Source§fn prepare(
&self,
artifact: &RefutationProblem<'a>,
_ctx: &ExecutionContext,
) -> Result<Self::Prepared, ValidationError>
fn prepare( &self, artifact: &RefutationProblem<'a>, _ctx: &ExecutionContext, ) -> Result<Self::Prepared, ValidationError>
Compile
artifact into a reusable prepared form. Read moreSource§fn validate(
&self,
prepared: &mut Self::Prepared,
workspace: &mut EstimationWorkspace,
ctx: &ExecutionContext,
) -> Result<Self::Report, ValidationError>
fn validate( &self, prepared: &mut Self::Prepared, workspace: &mut EstimationWorkspace, ctx: &ExecutionContext, ) -> Result<Self::Report, ValidationError>
Run the check on a prepared artifact. Read more
Source§impl<'a> Validator<RefutationProblem<'a>> for DataSubsetRefuter
impl<'a> Validator<RefutationProblem<'a>> for DataSubsetRefuter
Source§type Prepared = PreparedRefutation<'a>
type Prepared = PreparedRefutation<'a>
Prepared artifact produced by
Self::prepare.Source§type Report = RefutationReport
type Report = RefutationReport
Report produced by
Self::validate.Source§fn prepare(
&self,
artifact: &RefutationProblem<'a>,
_ctx: &ExecutionContext,
) -> Result<Self::Prepared, ValidationError>
fn prepare( &self, artifact: &RefutationProblem<'a>, _ctx: &ExecutionContext, ) -> Result<Self::Prepared, ValidationError>
Compile
artifact into a reusable prepared form. Read moreSource§fn validate(
&self,
prepared: &mut Self::Prepared,
workspace: &mut EstimationWorkspace,
ctx: &ExecutionContext,
) -> Result<Self::Report, ValidationError>
fn validate( &self, prepared: &mut Self::Prepared, workspace: &mut EstimationWorkspace, ctx: &ExecutionContext, ) -> Result<Self::Report, ValidationError>
Run the check on a prepared artifact. Read more
Source§impl<'a> Validator<RefutationProblem<'a>> for DummyOutcome
impl<'a> Validator<RefutationProblem<'a>> for DummyOutcome
Source§type Prepared = PreparedRefutation<'a>
type Prepared = PreparedRefutation<'a>
Prepared artifact produced by
Self::prepare.Source§type Report = RefutationReport
type Report = RefutationReport
Report produced by
Self::validate.Source§fn prepare(
&self,
artifact: &RefutationProblem<'a>,
_ctx: &ExecutionContext,
) -> Result<Self::Prepared, ValidationError>
fn prepare( &self, artifact: &RefutationProblem<'a>, _ctx: &ExecutionContext, ) -> Result<Self::Prepared, ValidationError>
Compile
artifact into a reusable prepared form. Read moreSource§fn validate(
&self,
prepared: &mut Self::Prepared,
workspace: &mut EstimationWorkspace,
ctx: &ExecutionContext,
) -> Result<Self::Report, ValidationError>
fn validate( &self, prepared: &mut Self::Prepared, workspace: &mut EstimationWorkspace, ctx: &ExecutionContext, ) -> Result<Self::Report, ValidationError>
Run the check on a prepared artifact. Read more
Source§impl<'a> Validator<RefutationProblem<'a>> for GraphRefuter
impl<'a> Validator<RefutationProblem<'a>> for GraphRefuter
Source§type Prepared = PreparedRefutation<'a>
type Prepared = PreparedRefutation<'a>
Prepared artifact produced by
Self::prepare.Source§type Report = RefutationReport
type Report = RefutationReport
Report produced by
Self::validate.Source§fn prepare(
&self,
artifact: &RefutationProblem<'a>,
_ctx: &ExecutionContext,
) -> Result<Self::Prepared, ValidationError>
fn prepare( &self, artifact: &RefutationProblem<'a>, _ctx: &ExecutionContext, ) -> Result<Self::Prepared, ValidationError>
Compile
artifact into a reusable prepared form. Read moreSource§fn validate(
&self,
prepared: &mut Self::Prepared,
workspace: &mut EstimationWorkspace,
ctx: &ExecutionContext,
) -> Result<Self::Report, ValidationError>
fn validate( &self, prepared: &mut Self::Prepared, workspace: &mut EstimationWorkspace, ctx: &ExecutionContext, ) -> Result<Self::Report, ValidationError>
Run the check on a prepared artifact. Read more
Source§impl<'a> Validator<RefutationProblem<'a>> for LinearSensitivity
impl<'a> Validator<RefutationProblem<'a>> for LinearSensitivity
Source§type Prepared = PreparedRefutation<'a>
type Prepared = PreparedRefutation<'a>
Prepared artifact produced by
Self::prepare.Source§type Report = RefutationReport
type Report = RefutationReport
Report produced by
Self::validate.Source§fn prepare(
&self,
artifact: &RefutationProblem<'a>,
_ctx: &ExecutionContext,
) -> Result<Self::Prepared, ValidationError>
fn prepare( &self, artifact: &RefutationProblem<'a>, _ctx: &ExecutionContext, ) -> Result<Self::Prepared, ValidationError>
Compile
artifact into a reusable prepared form. Read moreSource§fn validate(
&self,
prepared: &mut Self::Prepared,
workspace: &mut EstimationWorkspace,
ctx: &ExecutionContext,
) -> Result<Self::Report, ValidationError>
fn validate( &self, prepared: &mut Self::Prepared, workspace: &mut EstimationWorkspace, ctx: &ExecutionContext, ) -> Result<Self::Report, ValidationError>
Run the check on a prepared artifact. Read more
Source§impl<'a> Validator<RefutationProblem<'a>> for PartialLinearSensitivity
impl<'a> Validator<RefutationProblem<'a>> for PartialLinearSensitivity
Source§type Prepared = PreparedRefutation<'a>
type Prepared = PreparedRefutation<'a>
Prepared artifact produced by
Self::prepare.Source§type Report = RefutationReport
type Report = RefutationReport
Report produced by
Self::validate.Source§fn prepare(
&self,
artifact: &RefutationProblem<'a>,
_ctx: &ExecutionContext,
) -> Result<Self::Prepared, ValidationError>
fn prepare( &self, artifact: &RefutationProblem<'a>, _ctx: &ExecutionContext, ) -> Result<Self::Prepared, ValidationError>
Compile
artifact into a reusable prepared form. Read moreSource§fn validate(
&self,
prepared: &mut Self::Prepared,
workspace: &mut EstimationWorkspace,
ctx: &ExecutionContext,
) -> Result<Self::Report, ValidationError>
fn validate( &self, prepared: &mut Self::Prepared, workspace: &mut EstimationWorkspace, ctx: &ExecutionContext, ) -> Result<Self::Report, ValidationError>
Run the check on a prepared artifact. Read more
Source§impl<'a> Validator<RefutationProblem<'a>> for NonparametricSensitivity
impl<'a> Validator<RefutationProblem<'a>> for NonparametricSensitivity
Source§type Prepared = PreparedRefutation<'a>
type Prepared = PreparedRefutation<'a>
Prepared artifact produced by
Self::prepare.Source§type Report = RefutationReport
type Report = RefutationReport
Report produced by
Self::validate.Source§fn prepare(
&self,
artifact: &RefutationProblem<'a>,
_ctx: &ExecutionContext,
) -> Result<Self::Prepared, ValidationError>
fn prepare( &self, artifact: &RefutationProblem<'a>, _ctx: &ExecutionContext, ) -> Result<Self::Prepared, ValidationError>
Compile
artifact into a reusable prepared form. Read moreSource§fn validate(
&self,
prepared: &mut Self::Prepared,
workspace: &mut EstimationWorkspace,
ctx: &ExecutionContext,
) -> Result<Self::Report, ValidationError>
fn validate( &self, prepared: &mut Self::Prepared, workspace: &mut EstimationWorkspace, ctx: &ExecutionContext, ) -> Result<Self::Report, ValidationError>
Run the check on a prepared artifact. Read more
Source§impl<'a> Validator<RefutationProblem<'a>> for RieszSensitivity
impl<'a> Validator<RefutationProblem<'a>> for RieszSensitivity
Source§type Prepared = PreparedRefutation<'a>
type Prepared = PreparedRefutation<'a>
Prepared artifact produced by
Self::prepare.Source§type Report = RefutationReport
type Report = RefutationReport
Report produced by
Self::validate.Source§fn prepare(
&self,
artifact: &RefutationProblem<'a>,
_ctx: &ExecutionContext,
) -> Result<Self::Prepared, ValidationError>
fn prepare( &self, artifact: &RefutationProblem<'a>, _ctx: &ExecutionContext, ) -> Result<Self::Prepared, ValidationError>
Compile
artifact into a reusable prepared form. Read moreSource§fn validate(
&self,
prepared: &mut Self::Prepared,
workspace: &mut EstimationWorkspace,
ctx: &ExecutionContext,
) -> Result<Self::Report, ValidationError>
fn validate( &self, prepared: &mut Self::Prepared, workspace: &mut EstimationWorkspace, ctx: &ExecutionContext, ) -> Result<Self::Report, ValidationError>
Run the check on a prepared artifact. Read more
Source§impl<'a> Validator<RefutationProblem<'a>> for OverlapRefuter
impl<'a> Validator<RefutationProblem<'a>> for OverlapRefuter
Source§type Prepared = PreparedRefutation<'a>
type Prepared = PreparedRefutation<'a>
Prepared artifact produced by
Self::prepare.Source§type Report = RefutationReport
type Report = RefutationReport
Report produced by
Self::validate.Source§fn prepare(
&self,
artifact: &RefutationProblem<'a>,
_ctx: &ExecutionContext,
) -> Result<Self::Prepared, ValidationError>
fn prepare( &self, artifact: &RefutationProblem<'a>, _ctx: &ExecutionContext, ) -> Result<Self::Prepared, ValidationError>
Compile
artifact into a reusable prepared form. Read moreSource§fn validate(
&self,
prepared: &mut Self::Prepared,
_workspace: &mut EstimationWorkspace,
_ctx: &ExecutionContext,
) -> Result<Self::Report, ValidationError>
fn validate( &self, prepared: &mut Self::Prepared, _workspace: &mut EstimationWorkspace, _ctx: &ExecutionContext, ) -> Result<Self::Report, ValidationError>
Run the check on a prepared artifact. Read more
Source§impl<'a> Validator<RefutationProblem<'a>> for OverlapRuleRefuter
impl<'a> Validator<RefutationProblem<'a>> for OverlapRuleRefuter
Source§type Prepared = PreparedRefutation<'a>
type Prepared = PreparedRefutation<'a>
Prepared artifact produced by
Self::prepare.Source§type Report = RefutationReport
type Report = RefutationReport
Report produced by
Self::validate.Source§fn prepare(
&self,
artifact: &RefutationProblem<'a>,
_ctx: &ExecutionContext,
) -> Result<Self::Prepared, ValidationError>
fn prepare( &self, artifact: &RefutationProblem<'a>, _ctx: &ExecutionContext, ) -> Result<Self::Prepared, ValidationError>
Compile
artifact into a reusable prepared form. Read moreSource§fn validate(
&self,
prepared: &mut Self::Prepared,
_workspace: &mut EstimationWorkspace,
_ctx: &ExecutionContext,
) -> Result<Self::Report, ValidationError>
fn validate( &self, prepared: &mut Self::Prepared, _workspace: &mut EstimationWorkspace, _ctx: &ExecutionContext, ) -> Result<Self::Report, ValidationError>
Run the check on a prepared artifact. Read more
Source§impl<'a> Validator<RefutationProblem<'a>> for EValue
impl<'a> Validator<RefutationProblem<'a>> for EValue
Source§type Prepared = PreparedRefutation<'a>
type Prepared = PreparedRefutation<'a>
Prepared artifact produced by
Self::prepare.Source§type Report = RefutationReport
type Report = RefutationReport
Report produced by
Self::validate.Source§fn prepare(
&self,
artifact: &RefutationProblem<'a>,
_ctx: &ExecutionContext,
) -> Result<Self::Prepared, ValidationError>
fn prepare( &self, artifact: &RefutationProblem<'a>, _ctx: &ExecutionContext, ) -> Result<Self::Prepared, ValidationError>
Compile
artifact into a reusable prepared form. Read moreSource§fn validate(
&self,
prepared: &mut Self::Prepared,
_workspace: &mut EstimationWorkspace,
_ctx: &ExecutionContext,
) -> Result<Self::Report, ValidationError>
fn validate( &self, prepared: &mut Self::Prepared, _workspace: &mut EstimationWorkspace, _ctx: &ExecutionContext, ) -> Result<Self::Report, ValidationError>
Run the check on a prepared artifact. Read more
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for RefutationProblem<'a>
impl<'a> !UnwindSafe for RefutationProblem<'a>
impl<'a> Freeze for RefutationProblem<'a>
impl<'a> Send for RefutationProblem<'a>
impl<'a> Sync for RefutationProblem<'a>
impl<'a> Unpin for RefutationProblem<'a>
impl<'a> UnsafeUnpin for RefutationProblem<'a>
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> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> ForeignBufferOwner for T
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