factor.
"PLS"(x, y, ncomp = 20, method = "nipals", scale = FALSE, iter.max = 100, ...) "PLS"(x, y, ...)
"PLS"(x, y, ...)
"PLS"(x, y, ...)
"predict"(object, newx, newy, ...)matrix or a vector for ordinary PLS, or a factor or a character for PLS-DA.scale.PLS.PLS object.PLS, which is a ResultSet, where each component of the resultData slot contains at least the following components:scores:loadings:weights:Yscores:Yweights:projection:coefficients:ncomp:method:center:scale:Ycenter:Yscale:fitted:OPLS,
PCA,
spatialShrunkenCentroids,
sset <- generateImage(diag(4), range=c(200, 300), step=1)
y <- factor(diag(4))
pls <- PLS(sset, y, ncomp=1:2)
Run the code above in your browser using DataLab