kernel.pca.Rd
Performs a kernel PCA.
kernel.pca(K, ncomp = nrow(K$kernel))
a kernel object obtained using either compute.kernel
or
combine.kernels
.
integer. Indicates the number of components to return..
kernel.pca
returns an object of classes "kernel.pca"
and "pca"
, which is a list containing the following entries:
: the number of principal components;
: the input kernel matrix;
: the input kernel object provided by the user;
: the singular values (square root of the eigenvalues);
: the matrix of variable loadings (i.e., a matrix whose columns contain the eigenvectors);
: same as 'rotation' to keep the mixOmics spirit;
: same as 'rotation' to keep the mixOmics spirit;
Scholkopf B., Smola A. and Muller K.R. (1998) Nonlinear component analysis as a kernel eigenvalue problem. Neural Computation, 10, 1299-1319.
data(TARAoceans)
phychem.kernel <- compute.kernel(TARAoceans$phychem, kernel.func = "linear")
kernel.pca.result <- kernel.pca(phychem.kernel, ncomp = 3)