[R] a question about the pls.pcr package

Rajarshi Guha rxg218 at psu.edu
Mon Sep 22 18:48:04 CEST 2003


Hi,
  I downloaded the pls.pcr package and was experimenting with some of my
data. I have two files: the first contains the obervation matrix, each
line consisting of the parameters for one observation. The other file
contains the dependant variable (one value per line).

The steps I do to do a PLS are:

x <- read.table("obs")
y <- read.table("res")
o <- mvr(x,y,method="SIMPLS")

This appears to work. However when I do 

o <- mvr(x,y,method="SIMPLS",validation="CV")

I get

Error in crossprod(x, y) : requires numeric matrix/vector arguments

Does anybody have any idea why this should occur?

Thanks,

-------------------------------------------------------------------
Rajarshi Guha <rxg218 at psu.edu> <http://jijo.cjb.net>
GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE
-------------------------------------------------------------------
C Code.
C Code Run.
Run, Code, RUN!
PLEASE!!!!




More information about the R-help mailing list