Vte: Vte

Description Usage Arguments Value Examples

View source: R/RKSIR.R

Description

Compute the e.d.r. direction on the testing data

Usage

1
Vte(Xtest, Xtrain, Xsple, p, ei, kernel = "AG", sigma = 2)

Arguments

Xtest

testing data

Xtrain

training data

Xsple

if data is too large, can choose some sample of training data

p

dimensions of e.d.r. directions

ei

eigen analysis result of Ei

kernel

kernel functions, "AG" means AGKernel, "G" means GKernel, "P" means PKernel

sigma

bandwidth

Value

a matrix with column vector being e.d.r. direction on the testing set

Vtr

column vectors are the e.d.r. directions of testing data

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
Xtrain <- matrix(rnorm(30), 15, 2)
Xtest <- matrix(rnorm(20), 10, 2)
Kx <- KX(Xtrain)
y <- sample(1:15, 15)
J <- Jy(y, h = 5)
ei <- Ei(Kx, J, s = 0.1)
Vte(Xtest, Xtrain, Xtrain, p = 2, ei)

## End(Not run)

zhaolotelli/SC19017 documentation built on Jan. 3, 2020, 9:19 p.m.