onekpca_loading {loadings}R Documentation

One-sided kernel principal component loading

Description

This function computes one-sided kernel principal component (one-sided KPC) loading from the result of the "one_kpca" function.

Usage

onekpca_loading(onekpca)

Arguments

onekpca

The following variables (P,T and U) are included in the onekpca object.

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

Details

The one-sided KPC loading and the p-value by statistical hypothesis testing is added to the onekpca object returned by the "one_kpca" function.

Value

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

R : one-sided KPC loading (Correlation coefficient between one-sided KPC score of nonlinear variable (kernel matrix) and each variables in data matrix.)

p.value : p-value of one-sided KPC loading

Author(s)

Hiroyuki Yamamoto

References

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

Examples

# COVID-19 metabolome data
data(covid19)

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

onekpca <- one_kpca(X,K)

onekpca <- onekpca_loading(onekpca)

onekpca$loading$R
onekpca$loading$p.value


[Package loadings version 0.5.1 Index]