powered by
Performs standard gPCA with k components on a data matrix X with row inner product Q and weights D.
k
X
Q
D
gpca(X, Q, D = rep(1, nrow(X)), k)
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).
QV
U
vars
A data matrix of size \(n \times p\).
An inner product matrix for the rows, either as a \(p \times p\) matrix or an eigendecomposition of such a matrix.
Sample weights, a vector of length \(n\).
The number of components to return.
data(AntibioticSmall) out.gpca = gpca(AntibioticSmall$X, AntibioticSmall$Q, k = 2)
Run the code above in your browser using DataLab