pub struct BootstrapRefute {
pub replicates: u32,
pub ci_level: f64,
pub estimator: LinearAdjustmentAte,
}Expand description
IID row bootstrap of the whole (T, Y, Z…) design; “passes” if the original point estimate
falls inside the percentile confidence interval of the resampled ATEs.
Each replicate refits with estimator.bootstrap_replicates = 0 (per the internal fit_once path)
so this never creates a nested bootstrap pool inside the resample loop.
Fields§
§replicates: u32Bootstrap replicates.
ci_level: f64Confidence level for the percentile interval (e.g. 0.95).
estimator: LinearAdjustmentAteEstimator used for refits (bootstrap disabled).
Implementations§
Source§impl BootstrapRefute
impl BootstrapRefute
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 BootstrapRefute
impl Clone for BootstrapRefute
Source§fn clone(&self) -> BootstrapRefute
fn clone(&self) -> BootstrapRefute
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 BootstrapRefute
impl Debug for BootstrapRefute
Source§impl Default for BootstrapRefute
impl Default for BootstrapRefute
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
Auto Trait Implementations§
impl Freeze for BootstrapRefute
impl RefUnwindSafe for BootstrapRefute
impl Send for BootstrapRefute
impl Sync for BootstrapRefute
impl Unpin for BootstrapRefute
impl UnsafeUnpin for BootstrapRefute
impl UnwindSafe for BootstrapRefute
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