pub struct DataSubsetRefuter {
pub replicates: u32,
pub subset_fraction: f64,
pub alpha: f64,
pub estimator: LinearAdjustmentAte,
}Expand description
Randomly subset rows and re-estimate; expect the ATE to move little.
Fields§
§replicates: u32Replicate count (fresh subset draw per replicate).
subset_fraction: f64Fraction of rows kept per replicate.
alpha: f64Pass if the subset ATE distribution is consistent with the original estimate at
this significance level (two-sided normal test on the replicates, p >= alpha).
estimator: LinearAdjustmentAteEstimator used for refits (bootstrap disabled).
Implementations§
Source§impl DataSubsetRefuter
impl DataSubsetRefuter
Sourcepub fn refute(
&self,
problem: &RefutationProblem<'_>,
workspace: &mut EstimationWorkspace,
ctx: &ExecutionContext,
) -> Result<RefutationReport, ValidationError>
pub fn refute( &self, problem: &RefutationProblem<'_>, workspace: &mut EstimationWorkspace, ctx: &ExecutionContext, ) -> Result<RefutationReport, ValidationError>
Trait Implementations§
Source§impl Clone for DataSubsetRefuter
impl Clone for DataSubsetRefuter
Source§fn clone(&self) -> DataSubsetRefuter
fn clone(&self) -> DataSubsetRefuter
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 DataSubsetRefuter
impl Debug for DataSubsetRefuter
Source§impl Default for DataSubsetRefuter
impl Default for DataSubsetRefuter
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
Auto Trait Implementations§
impl Freeze for DataSubsetRefuter
impl RefUnwindSafe for DataSubsetRefuter
impl Send for DataSubsetRefuter
impl Sync for DataSubsetRefuter
impl Unpin for DataSubsetRefuter
impl UnsafeUnpin for DataSubsetRefuter
impl UnwindSafe for DataSubsetRefuter
Blanket Implementations§
impl<T> Allocation for T
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