View source: R/adaptivegpca-package.R
| gpca | R Documentation |
Performs standard gPCA with k components on a data matrix X with
row inner product Q and weights D.
gpca(X, Q, D = rep(1, nrow(X)), k)
X |
A data matrix of size n \times p. |
Q |
An inner product matrix for the rows, either as a p \times p matrix or an eigendecomposition of such a matrix. |
D |
Sample weights, a vector of length n. |
k |
The number of components to return. |
A list with variable loadings on the principal axes
(QV), sample/row scores (U), the fraction of the
variance explained by each of the axes (vars).
data(AntibioticSmall) out.gpca = gpca(AntibioticSmall$X, AntibioticSmall$Q, k = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.