[R] question about plsr() results

2011-12-01 Thread Vytautas Rakeviius
Hi, With some help I learned how to use plsr(Y~x, 2, data=my) function in R (and build my from vector Y and matrix x). But still I have question about results interpretation. In the end I want to construct prediction function in form: Y=a1x1+a2x2 But I do not understand how to do it.

[R] Invalid number of components, ncomp

2011-11-30 Thread Vytautas Rakeviius
Error in mvr(Kd_nM ~ qsar, ncomp = 6, data = my, validation = CV, method = kernelpls) :   Invalid number of components, ncomp How I can fix this? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] plsr how to return my formula

2011-11-25 Thread Vytautas Rakeviius
Hi, I have experimental response (Y) and many (important or not) actions (X). I want to create model: Y = aX1 + bX2 + ... + eX5 (1) from few most important actions of course. As I understand I have to use plsr for this task. I learned read.table and plsr R functions and how to plot some