getSubsetVi: getSubsetVi method for (O)PLS(-DA) models

Description Usage Arguments Value Author(s) Examples

Description

Extracts the indices of the samples used for building the model (when a subset argument has been specified)

Usage

1
2
3
4
getSubsetVi(object, ...)

## S4 method for signature 'opls'
getSubsetVi(object)

Arguments

object

An S4 object of class opls, created by opls function.

...

Currently not used.

Value

Integer vector with the indices of the samples used for training

Author(s)

Etienne Thevenot, etienne.thevenot@cea.fr

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
data(sacurine)
attach(sacurine)

predictorMN <- dataMatrix
responseFc <- sampleMetadata[, "gender"]

sacurine.plsda <- opls(predictorMN,
                       responseFc,
                       subset = "odd")

trainVi <- getSubsetVi(sacurine.plsda)

table(responseFc[trainVi], fitted(sacurine.plsda))

detach(sacurine)


Search within the ropls package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.