1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
// ============================================================================
// Diagnostics Module
// ============================================================================
//! Statistical diagnostic tests for linear regression assumptions.
//!
//! This module provides a comprehensive suite of diagnostic tests to validate
//! the assumptions of ordinary least squares (OLS) regression. Each test is
//! implemented in its own file for easier maintenance.
//!
//! # Available Tests
//!
//! ## Linearity Tests
//!
//! - **Rainbow Test** (`rainbow.rs`) - Tests whether the relationship between
//! predictors and response is linear
//! - **Harvey-Collier Test** (`harvey_collier.rs`) - Tests for functional form
//! misspecification using recursive residuals
//! - **RESET Test** (`reset.rs`) - Ramsey's Regression Specification Error Test
//! for detecting omitted variables or incorrect functional form
//!
//! ## Heteroscedasticity Tests
//!
//! - **Breusch-Pagan Test** (`breusch_pagan.rs`) - Tests for constant variance
//! of residuals (studentized/Koenker variant)
//! - **White Test** (`white.rs`) - More general test for heteroscedasticity
//! that does not assume a specific form
//!
//! ## Normality Tests
//!
//! - **Jarque-Bera Test** (`jarque_bera.rs`) - Tests normality using skewness
//! and kurtosis
//! - **Shapiro-Wilk Test** (`shapiro_wilk.rs`) - Powerful normality test for
//! small to moderate samples (n ≤ 5000)
//! - **Anderson-Darling Test** (`anderson_darling.rs`) - Tail-sensitive test for
//! normality
//!
//! ## Autocorrelation Tests
//!
//! - **Durbin-Watson Test** (`durbin_watson.rs`) - Tests for first-order
//! autocorrelation in residuals
//! - **Breusch-Godfrey Test** (`breusch_godfrey.rs`) - Tests for higher-order
//! serial correlation (LM test)
//!
//! ## Influence Measures
//!
//! - **Cook's Distance** (`cooks_distance.rs`) - Identifies influential
//! observations that may affect regression results
//! - **DFBETAS** (`dfbetas.rs`) - Measures influence of each observation on each coefficient
//! - **DFFITS** (`dffits.rs`) - Measures influence of each observation on its fitted value
//!
//! ## Multicollinearity Tests
//!
//! - **VIF** (`vif.rs`) - Variance Inflation Factor for detecting multicollinearity
// Submodules
// Re-export types
pub use ;
// Re-export test functions
pub use ;
pub use ;
pub use breusch_pagan_test;
pub use cooks_distance_test;
pub use dfbetas_test;
pub use dffits_test;
pub use ;
pub use harvey_collier_test;
pub use jarque_bera_test;
pub use rainbow_test;
pub use ;
pub use ;
pub use ;
pub use vif_test;
// Re-export helper functions that are used elsewhere
pub use ;