structuredSCA: Variable selection algorithm with a predefined component...

Description Usage Arguments Value References Examples

Description

Variable selection algorithm when the common/distinctive structure is known a priori. The common component can also be sparse, which is to be estimated by Lasso. The distinctive components are not sparse in the sense that the entire variables in a component (belonging to a certain block) are either all zeros or non-zeros.

Usage

1
structuredSCA(DATA, Jk, R, Target, Position, LASSO, MaxIter, NRSTARTS)

Arguments

DATA

A matrix, which contains the concatenated data with the same subjects from multiple blocks.

Jk

A vector containing number of variables in the concatinated data matrix.

R

Number of components (R>=2).

Target

A matrix containing 0's and 1's. Its number of columns equals to R, and its number of rows equals to the number of blocks to be integrated. Thus, if the element in

Position

Indicate on which component(s) the Lasso Penalty is imposed. If unspecified, the algorithm assume that the Lasso penalty is imposed on the common component(s) only. If there is no common component, then Lasso penalty is applied to all components.

LASSO

A Lasso tuning parameter.

MaxIter

The maximum rounds of iterations. It should be a positive integer. The default value is 400.

NRSTARTS

Multi-start procedure: The number of multi-starts. The default value is 20.

Value

Pmatrix

The best estimated component loading matrix (i.e., P), if multi-starts >= 2.

Tmatrix

The best estimated component score matrix (i.e., T), if multi-starts >= 2.

Lossvec

A list of vectors containing the loss in each iteration for each multi-start.

References

Gu, Z., & Van Deun, K. (2016). A variable selection method for simultaneous component based data integration. Chemometrics and Intelligent Laboratory Systems, 158, 187-199.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
DATA1 <- matrix(rnorm(50), nrow=5)
DATA2 <- matrix(rnorm(100), nrow=5) 
DATA <- cbind(DATA1, DATA2)
Jk <- c(10, 20) 
R <- 5 
Target <- matrix(c(1,1,1,0,1,0,0,1,0,1), 2, 5) 
LASSO <- 0.2 
MaxIter <- 400
NRSTARTS <- 5
structuredSCA(DATA, Jk, R, Target, LASSO = LASSO)

## End(Not run)

ZhengguoGu/RegularizedSCA documentation built on July 4, 2019, 2:46 p.m.