Learn R Programming

loadings (version 0.5.1)

one_kpca: One-sided kernel principal component analysis

Description

This function performs one-sided kernel principal component analysis (one-sided KPCA). In this function, data matrix is automatically scaled to zero mean and unit variance (i.e. autoscaling) for each variables.

Usage

one_kpca(X,K)

Value

The return value is a list object that contains the following elements:

P : A matrix with one-sided KPCA loading in each column

T : A matrix with one-sided KPCA score for linear side in each column

U : A matrix with one-sied KPCA score for nonlinear side in each column

Arguments

X

Data matrix that include variables in each columns.

K

Kernel matrix computed from the data matrix X.

Author

Hiroyuki Yamamoto

Details

The kernel matrix K, which is the argument of the one_kpca function, must be centered.

References

Yamamoto H. (2023) One-sided Kernel Principal Component Analysis, Jxiv, <doi:10.51094/jxiv.262>.

Examples

Run this code
# COVID-19 metabolome data
data(covid19)

X <- covid19$X$metabolomics
K <- covid19$K$metabolomics

onekpca <- one_kpca(X,K)

Run the code above in your browser using DataLab