Expand description
§solow-multivariate
Multivariate statistical analysis for the Solow stack. This crate provides
Pca (principal component analysis), Factor (principal-axis factor
analysis), Manova (multivariate analysis of variance with the four
classical test statistics) and CanCorr (canonical correlation analysis),
all matching the conventions of the reference implementation
(multivariate.pca, .factor, .manova, .cancorr).
use ndarray::array;
use solow_multivariate::Pca;
let data = array![
[1.0, 2.0, 0.5],
[2.0, 1.0, 1.5],
[3.0, 0.0, 2.5],
[4.0, 1.0, 0.0],
];
let pca = Pca::new(data).fit().unwrap();
assert_eq!(pca.eigenvals.len(), 3);
// Eigenvalues are sorted in descending order.
assert!(pca.eigenvals[0] >= pca.eigenvals[1]);Structs§
- CanCorr
- A fitted canonical correlation analysis.
- CanCorr
Test Row - One row of the canonical-correlation approximate F-test table.
- Factor
- A principal-axis factor analysis awaiting estimation.
- Factor
Results - A fitted principal-axis factor model.
- Manova
- A fitted multivariate OLS, holding the quantities needed for hypothesis testing.
- Manova
Test - A single MANOVA hypothesis result.
- Multivariate
Stats - The four classical multivariate test statistics for a single hypothesis.
- MvStat
- One row of a multivariate statistics table: the statistic value, the numerator and denominator degrees of freedom of its F-approximation, the F-value and the upper-tail p-value.
- Pca
- A principal component analysis awaiting estimation.
- PcaResults
- Fitted principal component analysis.
- Rotation
- The result of a factor rotation: the rotated loadings
Land the rotation matrixT.
Enums§
- Rotation
Method - The rotation method requested by
rotate_factors.
Functions§
- multivariate_
stats - Compute the four multivariate statistics from the eigenvalues of
inv(E + H) · H. - rotate_
factors - Rotate the
p × kloading matrixloadingswith the namedmethod. - rotate_
with - Rotate using a parsed
RotationMethod.