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........ -- Nitish Kumar Mishra Junior Research Fellow BIC, IMTECH, Chandigarh, India E-Mail Address: nitish_km at yahoo.com nitish at imtech.res.in
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 %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
Nitish Kumar Mishra wrote:> I have installed PLS package in R and use it for princomp & prcomp > commands for calculating PCA using its example file(USArrests example).Uhm. These functions and data sets are not in the pls package; they are in the stats and datasets packages that come with R.> 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.There is an Rnews article describing the package?, and a paper in Journal of Statistical Software?. ?Mevik, B.-H. (2006); The pls package; R News 6(3), 12-17. <http://cran.r-project.org/doc/Rnews> ?Mevik, B.-H., Wehrens, R. (2007); The pls Package: Principal Component and Partial Least Squares Regression in R; Journal of Statistical Software 18(2), 1--24. <http://www.jstatsoft.org/v18/i02/v18i02.pdf> -- Bj?rn-Helge Mevik