adaptivegpca {adaptiveGPCA} | R Documentation |
Adaptive gPCA
Description
Performs adaptive generalized PCA, a dimensionality-reduction method which takes into account similarities between the variables. See Fukuyama, J. (2017) for more details.
Usage
adaptivegpca(X, Q, k = 2, weights = rep(1, nrow(X)))
Arguments
X |
A |
Q |
A |
k |
The number of components to return. |
weights |
A vector of length |
Value
A list containing the row/sample scores (U
), the
variable loadings (QV
), the proportion of variance explained
by each of the principal components (vars
), the value of
r
that was used (r
).
Examples
data(AntibioticSmall)
out.agpca = adaptivegpca(AntibioticSmall$X, AntibioticSmall$Q, k = 2)
[Package adaptiveGPCA version 0.1.3 Index]