Greetings R users, 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?
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 model. My thanks to any who can assist me, Charles [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.