pub struct NonparametricSensitivity {
pub partial_r2_grid: Vec<f64>,
pub pass_threshold: f64,
pub bandwidth: Option<f64>,
}Expand description
Nonparametric sensitivity: kernel-residualize T and Y on Z, then partial-R² grid on residuals.
Fields§
§partial_r2_grid: Vec<f64>Ascending grid of partial-R² values to test on residualized series.
pass_threshold: f64Pass if the robustness value exceeds this threshold.
bandwidth: Option<f64>Optional bandwidth override; None uses Silverman’s (1986) rule of thumb.
Implementations§
Source§impl NonparametricSensitivity
impl NonparametricSensitivity
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 NonparametricSensitivity
impl Clone for NonparametricSensitivity
Source§fn clone(&self) -> NonparametricSensitivity
fn clone(&self) -> NonparametricSensitivity
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 NonparametricSensitivity
impl Debug for NonparametricSensitivity
Source§impl Default for NonparametricSensitivity
impl Default for NonparametricSensitivity
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
Auto Trait Implementations§
impl Freeze for NonparametricSensitivity
impl RefUnwindSafe for NonparametricSensitivity
impl Send for NonparametricSensitivity
impl Sync for NonparametricSensitivity
impl Unpin for NonparametricSensitivity
impl UnsafeUnpin for NonparametricSensitivity
impl UnwindSafe for NonparametricSensitivity
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