x_CCA | R Documentation |
Run a sparse Canonical Correlation Analysis using the PMA
package
x_CCA(
x,
z,
x.test = NULL,
z.test = NULL,
y = NULL,
outcome = NULL,
k = 3,
niter = 20,
nperms = 50,
permute.niter = 15,
typex = "standard",
typez = "standard",
penaltyx = NULL,
penaltyz = NULL,
standardize = TRUE,
upos = FALSE,
vpos = FALSE,
verbose = TRUE,
n.cores = rtCores,
outdir = NULL,
save.mod = ifelse(!is.null(outdir), TRUE, FALSE),
...
)
x |
Matrix: Training x dataset |
z |
Matrix: Training z dataset |
x.test |
Matrix (Optional): Testing x set |
z.test |
Matrix (Optional): Testing z set |
y |
Outcome vector (Optional): If supplied, linear combinations of |
outcome |
Character: Type of outcome |
k |
Integer: Number of components |
niter |
Integer: Number of iterations |
nperms |
Integer: Number of permutations to run with |
permute.niter |
Integer: Number of iterations to run for each permutation with |
typex |
Character: "standard", "ordered". Use "standard" if columns of x are unordered; lasso penalty is applied to enforce sparsity. Otherwise, use "ordered"; fused lasso penalty is applied, to enforce both sparsity and smoothness. |
typez |
Character: "standard", "ordered". Same as |
penaltyx |
Float: The penalty to be applied to the matrix x, i.e. the penalty that results in the canonical vector u. If typex is "standard" then the L1 bound on u is penaltyx*sqrt(ncol(x)). In this case penaltyx must be between 0 and 1 (larger L1 bound corresponds to less penalization). If "ordered" then it's the fused lasso penalty lambda, which must be non-negative (larger lambda corresponds to more penalization). |
penaltyz |
Float: The penalty to be applied to the matrix z, i.e. the penalty that results in the canonical vector v. If typez is "standard" then the L1 bound on v is penaltyz*sqrt(ncol(z)). In this case penaltyz must be between 0 and 1 (larger L1 bound corresponds to less penalization). If "ordered" then it's the fused lasso penalty lambda, which must be non-negative (larger lambda corresponds to more penalization). |
standardize |
Logical: If TRUE, center and scale columns of |
upos |
Logical: Require elements of u to be positive |
vpos |
Logical: Require elements of v to be positive |
verbose |
Logical: Print messages, including |
n.cores |
Integer: Number of cores to use |
outdir |
Path to output directory. Default = NULL |
save.mod |
Logical: If TRUE, and |
... |
Additional arguments to be passed to |
#' x_CCA
runs PMA::CCA
. If penaltyx is NULL, penaltyx and penaltyz will be estimated automatically
using x_CCA.permute (adapted to run in parallel)
E.D. Gennatas
Other Cross-Decomposition:
xselect_decom()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.