o2m_stripped: Perform O2-PLS with two-way orthogonal corrections

Description Usage Arguments Details Value See Also

View source: R/OmicsPLS_o2m.R

Description

NOTE THAT THIS FUNCTION DOES NOT CENTER NOR SCALES THE MATRICES! Any normalization you will have to do yourself. It is best practice to at least center the variables though. A stripped version of O2PLS

Usage

1
o2m_stripped(X, Y, n, nx, ny)

Arguments

X

Numeric matrix. Vectors will be coerced to matrix with as.matrix (if this is possible)

Y

Numeric matrix. Vectors will be coerced to matrix with as.matrix (if this is possible)

n

Integer. Number of joint PLS components. Must be positive.

nx

Integer. Number of orthogonal components in X. Negative values are interpreted as 0

ny

Integer. Number of orthogonal components in Y. Negative values are interpreted as 0

Details

If both nx and ny are zero, o2m is equivalent to PLS2 with orthonormal loadings. This is a stripped implementation of O2PLS, using svd. For data analysis purposes, consider using o2m.

Value

A list containing

Tt

Joint X scores

W.

Joint X loadings

U

Joint Y scores

C.

Joint Y loadings

P_Yosc.

Orthogonal X loadings

P_Xosc.

Orthogonal Y loadings

B_U

Regression coefficient in Tt ~ U

B_T.

Regression coefficient in U ~ Tt

H_TU

Residuals in Tt in Tt ~ U

H_UT

Residuals in U in U ~ Tt

See Also

o2m


OmicsPLS documentation built on May 19, 2021, 5:08 p.m.