Learn R Programming

ropls (version 1.4.2)

getPcaVarVn: getPcaVarVn method for PCA models

Description

Variance of the components (score vectors)

Usage

"getPcaVarVn"(object)

Arguments

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

Value

Numeric vector with the same length as the number of components

Examples

Run this code

data(sacurine)
attach(sacurine)

sacurine.pca <- opls(dataMatrix)

getPcaVarVn(sacurine.pca)

detach(sacurine)

Run the code above in your browser using DataLab