[R] Help: PLSR
Bjørn-Helge Mevik
bhx2 at mevik.net
Mon Sep 5 10:31:27 CEST 2005
Shengzhe Wu writes:
> I have a data set with 15 variables (first one is the response) and
> 1200 observations. Now I use pls package to do the plsr as below.
[...]
> Because the trainSet has been scaled before training, I think Xtotvar
> should be equal to 14, but unexpectedly Xtotvar = 16562,
Because the Xtotvar is the "total X variation", measured by sum(X^2)
(where X has been centered). With 14 variables, scaled to sd == 1,
and 1200 observations, you should get Xtotvar == 14*(1200-1) ==
16786. (Maybe you have 1184 observations: 14*1183 == 16562.)
--
Bjørn-Helge Mevik
More information about the R-help
mailing list