View source: R/PO2PLS_functions.R
PO2PLS | R Documentation |
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.
PO2PLS(
X,
Y,
r,
rx,
ry,
steps = 1e+05,
tol = 1e-06,
init_param = c("o2m", "random", "unit"),
orth_type = "SVD",
random_restart = FALSE,
homogen_joint = FALSE,
null_B = FALSE,
verbose = TRUE
)
X |
Numeric matrix. Other types will be coerced to matrix with |
Y |
Numeric matrix. Other types will be coerced to matrix with |
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 |
steps |
Positive integer. Number of EM steps to perform |
tol |
Positive double. Tolerance of deciding if the likelihood increment is small enough to conclude convergence. |
init_param |
Character. Should be one of "o2m", "random" or "unit". Specifies which kind of parameters should be generated. |
orth_type |
Character. One of "SVD" or "QR". Best left set to "SVD" |
random_restart |
Not to be used |
homogen_joint |
Boolean. Should U=T be assumed? For simulation purposes to mimic SIFA. |
null_B |
Boolean. Should B=0 be assumed? For simulation purposes |
verbose |
Boolean. Should output about time and convergence state be printed? |
A list with
Estimated PO2PLS parameters
Conditional expectation and variances of latent variables
Meta data to be used for print
and summary
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.