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