[R] R-About PLSR

Gavin Simpson gavin.simpson at ucl.ac.uk
Fri May 25 14:29:06 CEST 2007


On Fri, 2007-05-25 at 17:25 +0530, Nitish Kumar Mishra wrote:
> hi R help group,
> I have installed PLS package in R and use it for princomp & prcomp
> commands for calculating PCA using its example file(USArrests example).
> But How I can use PLS for Partial least square, R square, mvrCv one more
> think how i can import external file in R. When I use plsr, R2, RMSEP it
> show error could not find function plsr, RMSEP etc.
> How I can calculate PLS, R2, RMSEP, PCR, MVR using pls package in R.
> Thanking you........

Did you load the package with:

library(pls)

Before you tried to use the functions you mention?

HTH

G

-- 
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
 Gavin Simpson                 [t] +44 (0)20 7679 0522
 ECRC, UCL Geography,          [f] +44 (0)20 7679 0565
 Pearson Building,             [e] gavin.simpsonATNOSPAMucl.ac.uk
 Gower Street, London          [w] http://www.ucl.ac.uk/~ucfagls/
 UK. WC1E 6BT.                 [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%



More information about the R-help mailing list