Skip to main content

solow_stats/
lib.rs

1//! # solow-stats
2//!
3//! Statistical diagnostics and hypothesis tests, validated against an
4//! authoritative reference implementation.
5//!
6//! The crate provides the standard battery of regression-diagnostic and
7//! normality tests, simple weighted descriptive statistics, two-sample
8//! location tests, autocorrelation tests, and multiple-testing corrections.
9//! Every public quantity is cross-validated to tight tolerances against the
10//! reference (see `tests/reference.rs`).
11//!
12//! ```
13//! use ndarray::array;
14//! use solow_stats::durbin_watson;
15//!
16//! let resid = array![0.1, -0.2, 0.05, 0.15, -0.1];
17//! let dw = durbin_watson(&resid);
18//! assert!((0.0..=4.0).contains(&dw));
19//! ```
20
21mod anova;
22mod contingency;
23mod correlation_tools;
24mod descriptivestats;
25mod diagnostic;
26mod dist_dependence;
27mod equivalence;
28mod influence;
29mod inter_rater;
30mod mediation;
31mod multitest;
32mod noncentral;
33mod normality;
34mod oaxaca;
35mod oneway;
36mod power;
37mod proportion;
38mod rates;
39mod regdiag;
40mod sandwich;
41mod srange;
42mod tukey;
43mod weightstats;
44
45pub use anova::{anova_lm, AnovaRow, AnovaTable, AnovaType, Term};
46pub use contingency::{ContingencyResult, Table};
47pub use correlation_tools::{
48    corr2cov, corr_clipped, corr_nearest, cov2corr, cov2corr_std, cov_nearest, NearestMethod,
49};
50pub use descriptivestats::{describe, Description, PERCENTILES};
51pub use diagnostic::{acorr_ljungbox, het_breuschpagan, het_white, LjungBox};
52pub use dist_dependence::{
53    as_column, distance_correlation, distance_covariance, distance_covariance_test,
54    distance_statistics, distance_variance, DcovTest, DistDependStat,
55};
56pub use equivalence::{ttost_ind, TostResult};
57pub use influence::{kstest_normal, lilliefors, variance_inflation_factor, LillieforsDist};
58pub use inter_rater::{aggregate_raters, cohens_kappa, fleiss_kappa, FleissMethod, KappaResults};
59pub use mediation::{Mediation, MediationResults};
60pub use multitest::{multipletests, MultiTestMethod, MultiTestResult};
61pub use noncentral::{nct_cdf, nct_sf};
62pub use normality::{durbin_watson, jarque_bera, omni_normtest, JarqueBera};
63pub use oaxaca::{OaxacaBlinder, ThreeFold, TwoFold, TwoFoldType};
64pub use oneway::{anova_generic, anova_oneway, f_oneway, OnewayResult, UseVar as OnewayUseVar};
65pub use power::{NormalIndPower, TTestPower};
66pub use proportion::{proportion_confint, proportions_ztest, ConfintMethod};
67pub use rates::{test_poisson_2indep, Compare, PoissonMethod, PoissonResult};
68pub use regdiag::{
69    acorr_breusch_godfrey, acorr_lm, compare_f_test, compare_lr_test, het_arch, linear_reset,
70    ResetAug,
71};
72pub use sandwich::{
73    cov_cluster, cov_hac, cov_hc0, cov_hc1, cov_hc2, cov_hc3, hat_diag, robust_bse,
74};
75pub use srange::{srange_cdf, srange_ppf, srange_sf};
76pub use tukey::{pairwise_tukeyhsd, TukeyHsdResult};
77pub use weightstats::{ttest_ind, ztest, Alternative, DescrStatsW, TTestResult, UseVar};