[R] Partial Least Squares Regression independent variables
tommy.mcdermott at gmail.com
Wed Apr 20 18:18:47 CEST 2011
I'm running PLSR on the PLS package. I have 507 independent and one
model<-plsr(y~x1+x2+x3......, data = mydata, validation = "CV")
the problem with this is writing in 507 variable names is not realistic as I
run out of line space in the command window.
I cannot run the model thus:
as is it is specifically warned against in the documentation.
In the example the independent variables have been collated and are
represented by a single name ("NIR", represents numerous variables labelled
NIR.1, NIR,2 etc). Can anyone advise on how this is done?
View this message in context: http://r.789695.n4.nabble.com/Partial-Least-Squares-Regression-independent-variables-tp3463478p3463478.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help