Learn R Programming

nsdr (version 0.1.1)

kpca: kpca

Description

kpca

Usage

kpca(x,complexity)

Arguments

x

dataset

complexity

tuning parameter in Gaussian kernel. larger complexity means a wiggly kernel function

Value

principal component

References

Li, B. (2018). Sufficient dimension reduction: Methods and applications with R. CRC Press.

Examples

Run this code
# NOT RUN {
n = 50; p = 5
x = matrix(rnorm(n*p),n,p)
pred=kpca(x,1)[,1:3]
# }

Run the code above in your browser using DataLab