Description Usage Arguments Value Author(s) See Also Examples
geigen
takes in constraints (W
), (usually diagonal matrices, but any positive semi-definite matrix) that are applied to the data (X
).
Constraints are used for the orthogonality conditions.
1 |
X |
a square, symmetric data matrix to decompose |
W |
Weights – the constraints applied to the matrix and thus the eigen vectors. |
k |
total number of components to return though the full variance will still be returned (see |
tol |
default is |
symmetric |
if |
A list with eight elements:
d_full |
A vector containing the singular values of X above the tolerance threshold (based on eigenvalues). |
l_full |
A vector containing the eigen values of X above the tolerance threshold ( |
d |
A vector of length |
l |
A vector of length |
v |
Eigenvectors. Dimensions are |
q |
Generalized eigenvectors. Dimensions are |
fj |
Component scores. Dimensions are |
Derek Beaton
tolerance_eigen
, gsvd
and gplssvd
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## (Metric) Multidimensional Scaling
data(wine, package="GSVD")
D <- as.matrix(dist(wine$objective))
masses <- rep(1/nrow(D), nrow(D))
Xi <- diag(nrow(D)) - ( rep(1,nrow(D)) %o% masses )
S <- Xi %*% (-(D^2) / 2) %*% t(Xi)
mds.res_geigen <- geigen(S)
## Principal components analysis: "covariance"
cov_X <- as.matrix(cov(wine$objective))
cov_pca.res_geigen <- geigen(cov_X)
## Principal components analysis: "correlation"
cor_X <- as.matrix(cor(wine$objective))
cor_pca.res_geigen <- geigen(cor_X)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.