Re: [R] A strange problem using pls package

2015-07-27 Thread Bjørn-Helge Mevik
"PO SU" writes: >  suppose data has 20 columns >   traindata <- data[ 1:10, 1:10] >  testdata <- data[11:15,1:10] >   pls.fit <- plsr(y~x, ncomp = 5, data = traindata, method= "simpls", scale = > FALSE, model = TRUE, validation = "CV") > ok, i get some result, the srange thing happens when i red

[R] A strange problem using pls package

2015-07-21 Thread PO SU
Dear expeRts,      Today i used the pls package to do the PLSR,  i don' t know if anyone happen to have the same problem as me, it is so strange, my problem is:  when i used codes like:  suppose data has 20 columns   traindata <- data[ 1:10, 1:10]  testdata <- data[11:15,1:10]   pls.fit <- pls