Discrepancies in the estimates of Partial least square (PLS) in SAS and R
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