[RS-ecology] PLS COMMAND ERROR

Rop Willy ropcwillies at gmail.com
Mon Jul 23 23:47:30 CEST 2018


Hello,
------------------------------

I have been practicing with the book and it’s been great so far. However,
there seems to be a problem with *Partial Least Squares Regression* in
superClass() function. When I run the following code:

sc <- superClass(p224r63_2011, trainData = training_2011, responseCol
= "class_name", model = "pls*

I get the following error:

*Error: Required package is missing in addition: Warning message: package
‘caret’ was built under R version 3.4.4.*

When I first encountered this problem, I run *superClass()* using different
models without *lapply ()* in order to identify where the problem was. It
occurred to me that Random Forest and Support Vector Machines with radial
basis kernel work as required while when I include “model = ‘pls’” it
produces that error.

NB: I thought maybe it was because of caret package, so I installed it but
it seems it was not.

Which package is missing?

Thank you,

Rop
​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-wuerzburg.de/pipermail/rs-ecology/attachments/20180724/99ef906e/attachment.html>


More information about the RS-ecology mailing list