View source: R/PO2PLS_functions.R
generate_params | R Documentation |
Generate parameter values of a PO2PLS model
generate_params(
X,
Y,
r,
rx,
ry,
alpha = 0.1,
type = c("random", "o2m", "unit")
)
X |
Numerical data matrix or positive integer. This parameter should either be a dataset |
Y |
Numerical data matrix or positive integer. This parameter should either be a dataset |
r |
Positive integer. Number of joint PLS components. Must be positive! |
rx |
Non-negative integer. Number of orthogonal components in |
ry |
Non-negative integer. Number of orthogonal components in |
alpha |
Numeric vector. The length should be either one or three, with each entry between 0 and 1. It represents the proportion of noise relative to the variation of |
type |
Character. Should be one of "random", "o2m" or "unit". Specifies which kind of parameters should be generated. If "o2m" is chosen, |
A list of PO2PLS parameters are generated based on the value of type
:
type="random"
Variance parameters are randomly sampled from a uniform distribution on 1 and 3 (1 and 4 for B
).
type="o2m"
O2PLS is fitted to X
and Y
first using o2m
from the OmicsPLS package, and the corresponding PO2PLS parameters are derived from the result.
type="unit"
The diagonal of each covariance matrix is a decreasing sequence from the number of components to one.
A list with
X
joint loadings
X
specific loadings
Y
joint loadings
Y
specific loadings
Regression matrix of U
on T
Covariance matrix of T
Covariance matrix of To
Covariance matrix of Uo
Covariance matrix of H
Variance of E
Variance of F
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.