gpca {adaptiveGPCA} | R Documentation |
gPCA
Description
Performs standard gPCA with k
components on a data matrix X
with
row inner product Q
and weights D
.
Usage
gpca(X, Q, D = rep(1, nrow(X)), k)
Arguments
X |
A data matrix of size |
Q |
An inner product matrix for the rows, either as a |
D |
Sample weights, a vector of length |
k |
The number of components to return. |
Value
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
).
Examples
data(AntibioticSmall)
out.gpca = gpca(AntibioticSmall$X, AntibioticSmall$Q, k = 2)
[Package adaptiveGPCA version 0.1.3 Index]