pub struct GrangerResult {
pub direction: GrangerDirection,
pub optimal_lag: usize,
pub f_statistic: f64,
pub p_value: f64,
pub effect_size: f64,
pub per_dimension_a_to_b: Vec<f64>,
pub per_dimension_b_to_a: Vec<f64>,
}Expand description
Result of a Granger causality test.
Fields§
§direction: GrangerDirectionDetected causal direction.
optimal_lag: usizeOptimal lag (the one with lowest combined p-value for the winning direction).
f_statistic: f64F-statistic for the winning direction at optimal lag.
p_value: f64Combined p-value (Fisher’s method) for the winning direction.
effect_size: f64Partial R² improvement (effect size).
per_dimension_a_to_b: Vec<f64>Per-dimension F-statistics for A→B at optimal lag.
per_dimension_b_to_a: Vec<f64>Per-dimension F-statistics for B→A at optimal lag.
Trait Implementations§
Source§impl Clone for GrangerResult
impl Clone for GrangerResult
Source§fn clone(&self) -> GrangerResult
fn clone(&self) -> GrangerResult
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GrangerResult
impl RefUnwindSafe for GrangerResult
impl Send for GrangerResult
impl Sync for GrangerResult
impl Unpin for GrangerResult
impl UnwindSafe for GrangerResult
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