tune.splslevel | R Documentation |
For a multilevel spls analysis, the tuning criterion is based on the maximisation of the correlation between the components from both data sets
tune.splslevel(
X,
Y,
multilevel,
ncomp = NULL,
mode = "regression",
test.keepX = rep(ncol(X), ncomp),
test.keepY = rep(ncol(Y), ncomp),
already.tested.X = NULL,
already.tested.Y = NULL,
BPPARAM = BiocParallel::SerialParam(),
seed = seed
)
X |
numeric matrix of predictors. |
Y |
|
multilevel |
Design matrix for multilevel analysis (for repeated measurements) that indicates the repeated measures on each individual, i.e. the individuals ID. See Details. |
ncomp |
the number of components to include in the model. |
mode |
character string. What type of algorithm to use, (partially)
matching one of |
test.keepX |
numeric vector for the different number of variables to
test from the |
test.keepY |
numeric vector for the different number of variables to
test from the |
already.tested.X |
Optional, if |
already.tested.Y |
Optional, if |
BPPARAM |
BiocParallelParam object to manage parallelization |
seed |
set a number here if you want the function to give reproducible outputs. Not recommended during exploratory analysis. Note if RNGseed is set in 'BPPARAM', this will be overwritten by 'seed'. |
cor.value |
correlation between latent variables |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.