Learn R Programming

ropls (version 1.4.2)

coef.opls: Coefficients method for (O)PLS models

Description

Coefficients of the (O)PLS(-DA) regression model

Usage

"coef"(object, ...)

Arguments

object
An S4 object of class opls, created by opls function.
...
Currently not used.

Value

Numeric matrix of coefficients (number of rows equals the number of variables, and the number of columns equals the number of responses)

Examples

Run this code

data(sacurine)
attach(sacurine)

sacurine.plsda <- opls(dataMatrix,
                       sampleMetadata[, "gender"])

head(coef(sacurine.plsda))

detach(sacurine)

Run the code above in your browser using DataLab