Greetings R users,

I have been hoping someone would be familiar with this topic.  I understand
fully everything on this list is from the good graces of those who wish to
help.  Thanks to those who have helped in multiple circumstances.  However,
I wanted to post this question once more.  I hope someone will read it and
perhaps have some additional insight into what I may be able to do.

Thank you,

I have been working on running plsda and I would like to have the R2 and Q2
values.  I know the function R2 from the 'pls' package will generate both
R2 and Q2 but they are for each separate class.  Is there a way to get the
cumulative R2 and Q2 for the whole model?

R2(pls.new, estimate="all")

Response: B
       (Intercept)    1 comps  2 comps
train      0.00000   0.001759   0.3812
CV        -0.03419  -0.082686   0.2983

Response: FR8
       (Intercept)  1 comps  2 comps
train      0.00000   0.4362   0.4362
CV        -0.03419   0.3936   0.3745

Response: S45
       (Intercept)  1 comps  2 comps
train      0.00000   0.3682   0.7749
CV        -0.03419   0.3061   0.7313

Again, what I am looking for is a way to get an overall R2 and Q2 values
for the entire model.  My thanks to any who can assist me,

Charles

	[[alternative HTML version deleted]]

