Dear members,

 

My name is Seungho Huh. I am a statistician who tries to use the Kernel
PLS method in a classification problem. I am sending this email to ask
you something about the "kernelpls" function in R (pls.pcr package).

 

I would like to obtain the predicted Y values for test data, using the
Kernel PLS method. Let's take the example in the R help:

 

> data(NIR)
> attach(NIR)
> NIR.kernelpls <- mvr(Xtrain, Ytrain, 1:6, validation = "CV",
method="kernelPLS")

 

How can we get the predicted Y values ("Ypred") for Xtest in this case?
As far as I checked, there is no parameter to specify the test data in
"mvr" or "pls". I, therefore, thought about the "kernelpls" function as
follows:

 

> Kernelpls(Xtrain, Ytrain, ncomp = 21, Xtest)

 

Is this the correct way of getting Ypred for Xtest? I am afraid that it
says in the help of "kernelpls", "this function should not be called
directly, but through the generic pls function with the argument
method="kernel" (default)." I would really appreciate it if you can give
some advice on this.

 

Thanks a lot for your time.

 

Seungho Huh, Ph.D.

Research Statistician

RTI International

North Carolina, USA

 

 


        [[alternative HTML version deleted]]

______________________________________________
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to