View source: R/adaptivegpca-package.R
| adaptivegpca | R Documentation | 
Performs adaptive generalized PCA, a dimensionality-reduction method which takes into account similarities between the variables. See Fukuyama, J. (2017) for more details.
adaptivegpca(X, Q, k = 2, weights = rep(1, nrow(X)))
| X | A n \times p data matrix. | 
| Q | A p \times p similarity matrix on the variables defining
an inner product on the rows of  | 
| k | The number of components to return. | 
| weights | A vector of length n containing weights for
the rows of  | 
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).
data(AntibioticSmall) out.agpca = adaptivegpca(AntibioticSmall$X, AntibioticSmall$Q, k = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.