.o2cv: do cross-validation with group factors
Description
do cross-validation with group factors
Usage
.o2cv(X, Y, n, nx, ny, group, nr)
Value
a list of o2pls results
Arguments
- X
a Numeric matrix (input)
- Y
a Numeric matrix (input)
- n
Integer. Number of joint PLS components.
- nx
Integer. Number of orthogonal components in X
- ny
Integer. Number of orthogonal components in Y
- group
a vector to indicate the group for Y
- nr
Integer to indicate the folds for cross validation