model: Model extractor for either PCA or PLS models

Description Usage Arguments Value Author(s) See Also Examples

Description

Function model returns the model for either the PCA, PLS models when functions plotPCA or plotPLS have been already respectively launched.

Usage

1

Arguments

x

A MAIT-class object

type

A character whose value should be "PCA" or "PLS" depending on which loading vectors are wanted.

Value

The PCA or PLS model

Author(s)

Francesc Fernandez, francesc.fernandez.albert@upc.edu

See Also

plotPCA or plotPLS

Examples

1
2
3
4
5
6
7
data(MAIT_sample)
MAIT<-spectralSigFeatures(MAIT,p.adj="fdr",parametric=TRUE)
MAIT<-plotPCA(MAIT,plot3d=FALSE)
model(MAIT,type="PCA")

MAIT<-plotPLS(MAIT,plot3d=FALSE)
model(MAIT,type="PLS")

MAIT documentation built on Nov. 8, 2020, 5:43 p.m.