Principal components analysis
Computed using SVD of the centred data matrix rather than from the spectral decomposition of the covariance matrix. eg. More like the R function "prcomp" than the R function "princomp".
NOTE: .loadings are transposed relative to the PCA function in Breeze
Value parameters
- colNames
-
Sequence of column names of mat
- mat
-
Data matrix with rows corresponding to observations and columns corresponding to variables
Attributes
- Returns
-
An object of type Pca with methods such as .loadings, .scores, .sdev and .summary
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Inherited methods
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Concrete fields
Breeze SVD object for the centred data matrix
Breeze SVD object for the centred data matrix
Attributes
Cumulative variance of the principal components
Cumulative variance of the principal components
Attributes
Loadings/rotation matrix. Note that this is the TRANSPOSE of the corresponding Breeze method. But this is the usual way the rotations are reported. See how the .summary method labels the rows and columns if you are confused.
Loadings/rotation matrix. Note that this is the TRANSPOSE of the corresponding Breeze method. But this is the usual way the rotations are reported. See how the .summary method labels the rows and columns if you are confused.
Attributes
Number of observations
Number of observations
Attributes
Column names (as a List)
Column names (as a List)
Attributes
Number of variables
Number of variables
Attributes
Proportion of variance explained by each principal component
Proportion of variance explained by each principal component
Attributes
n x p matrix of scores - the rotated data
n x p matrix of scores - the rotated data
Attributes
Standard deviations of the principal components
Standard deviations of the principal components
Attributes
The total variance of the principal components
The total variance of the principal components
Attributes
Variances of the principal components
Variances of the principal components
Attributes
Centred data matrix
Centred data matrix
Attributes
Column means (for centring)
Column means (for centring)