o2pls {o2plsda}R Documentation

fit O2PLS model with best nc, nx, ny

Description

fit O2PLS model with best nc, nx, ny

Usage

o2pls(X, Y, nc, nx, ny, scale = FALSE, center = FALSE)

Arguments

X

a Numeric matrix (input)

Y

a Numeric matrix (input)

nc

Integer. Number of joint PLS components.

nx

Integer. Number of orthogonal components in X

ny

Integer. Number of orthogonal components in Y

scale

boolean values determining if data should be scaled or not

center

boolean values determining if data should be centered or not

Value

An object containing

Xscore

Joint XX scores

Xloading

Joint XX loadings

Yscore

Joint YY scores

Yloading

Joint YY loadings

TYosc

Orthogonal XX scores

PYosc

Orthogonal XX loadings

WYosc

Orthogonal XX weights

UXosc

Orthogonal YY scores

PXosc

Orthogonal YY loadings

CXosc

Orthogonal YY weights

BU

Regression coefficient in Tt ~ U

BT

Regression coefficient in U ~ Tt

Xhat

Prediction of XX with YY

Yhat

Prediction of YY with XX

R2Xhat

Variation of the predicted XX as proportion of variation in XX

R2Yhat

Variation of the predicted YY as proportion of variation in YY

R2X

Variation of the modeled part in XX (defined by Joint + Orthogonal variation) as proportion of total variation in XX

R2Y

Variation of the modeled part in YY (defined by Joint + Orthogonal variation) as proportion of total variation in YY

R2Xcorr

Variation of the joint part in XX

R2Ycorr

Variation of the joint part in YY

R2Xo

Variation of the orthogonal part in XX as proportion of variation in XX

R2Yo

Variation of the orthogonal part in YY as proportion of variation in YY

R2Xp

Variation in XX joint part predicted by YY Joint part

R2Yp

Variation in YY joint part predicted by XX Joint part

varXj

Variation in each Latent Variable (LV) in XX Joint part

varYj

Variation in each Latent Variable (LV) in YY Joint part

varXorth

Variation in each Latent Variable (LV) in XX Orthogonal part

varYorth

Variation in each Latent Variable (LV) in YY Orthogonal part

Exy

Residuals in XX

Fxy

Residuals in YY

Author(s)

Kai Guo

Examples

set.seed(123)
X = matrix(rnorm(500),50,10)
Y = matrix(rnorm(500),50,10)
X = scale(X, scale = TRUE)
Y = scale(Y, scale = TRUE)
fit <- o2pls(X, Y, 1, 2, 2)
summary(fit)

[Package o2plsda version 0.0.25 Index]