Re: [R] package(pls) - extracting explained Y-variance

2010-06-28 Thread Bjørn-Helge Mevik
Christian Jebsen jeb...@rz.uni-leipzig.de writes:

 Dear R-help users,

 I'd like to use the R-package pls and want to extract the explained
 Y-variance to identify the important (PLS-) principal components in my
 model, related to the y-data. For explained X-variance there is a  function:
 explvar(). If I understand it right, the summary()  function gives an
 overview, where the y-variance is shown, but I can't  extract it for
 plotting.

If you look at the summary function (summary.mvr), you will see that it
uses the R2 function for this:

yve - 100 * drop(R2(object, estimate = train, 
intercept = FALSE)$val)

(For cross-validated or test set validated models, it uses RMSEP.)

-- 
Bjørn-Helge Mevik

__
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.


[R] package(pls) - extracting explained Y-variance

2010-06-26 Thread Christian Jebsen


Dear R-help users,

I'd like to use the R-package pls and want to extract the explained  
Y-variance to identify the important (PLS-) principal components in my  
model, related to the y-data. For explained X-variance there is a  
function: explvar(). If I understand it right, the summary()  
function gives an overview, where the y-variance is shown, but I can't  
extract it for plotting.


How can I do it, withou pencil and paper?

Thank you very much for help,
Christian

__
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.