Skip to contents

OPLS splits a data matrix into two parts. One part contains information orthogonal to the input vector, and the other is non-orthogonal.

Usage

OPLSDA(number_components = 1, factor_name, ...)

Arguments

number_components

(numeric, integer) The number of orthgonal components. The default is 1.

factor_name

(character) The name of a sample-meta column to use.

...

Additional slots and values passed to struct_class.

Value

A OPLSDA object with the following output slots:

opls_model(list)
filtered(DatasetExperiment)
orthogonal(DatasetExperiment)

Inheritance

A OPLSDA object inherits the following struct classes:

[OPLSDA] >> [OPLSR] >> [model] >> [struct_class]

Examples

M = OPLSDA(
      number_components = 2,
      factor_name = "V1")

M = OPLSR('number_components'=2,factor_name='Species')