pub struct VifResult {
pub variable: String,
pub vif: f64,
pub rsquared: f64,
pub interpretation: String,
}Expand description
Result of VIF (Variance Inflation Factor) calculation.
VIF measures how much the variance of an estimated regression coefficient increases due to multicollinearity among the predictors.
§Fields
variable- Name of the predictor variablevif- Variance Inflation Factor (VIF > 10 indicates high multicollinearity)rsquared- R-squared from regressing this predictor on all othersinterpretation- Human-readable interpretation of the VIF value
§Example
let vif = VifResult {
variable: "X1".to_string(),
vif: 2.5,
rsquared: 0.6,
interpretation: "Low multicollinearity".to_string(),
};
assert_eq!(vif.variable, "X1");Fields§
§variable: StringName of the predictor variable
vif: f64Variance Inflation Factor (VIF > 10 indicates high multicollinearity)
rsquared: f64R-squared from regressing this predictor on all others
interpretation: StringHuman-readable interpretation of the VIF value
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VifResult
impl RefUnwindSafe for VifResult
impl Send for VifResult
impl Sync for VifResult
impl Unpin for VifResult
impl UnwindSafe for VifResult
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