[R] Discrepancies in the estimates of Partial least square (PLS) in SAS and R

Bjørn-Helge Mevik b.h.mevik at usit.uio.no
Fri May 4 11:39:13 CEST 2012


rakeshnb <rakeshnb50 at gmail.com> writes:

> I am using pls package but how is scaling done in R?

That is documented in the help pages:

> library(pls)
> ?plsr
[snip]
   scale: numeric vector, or logical.  If numeric vector, X is scaled
          by dividing each variable with the corresponding element of
          'scale'.  If 'scale' is 'TRUE', X is scaled by dividing each
          variable by its sample standard deviation.  If
          cross-validation is selected, scaling by the standard
          deviation is done for every segment.

When in doubt, read the documentation. :)

-- 
Regards,
Bjørn-Helge Mevik



More information about the R-help mailing list