icaList: icaList, wrapper function to do single subject ICA analyses...

Description Usage Arguments Value See Also Examples

View source: R/icaList.R

Description

icaList, wrapper function to do single subject ICA analyses on a list of matrices

Usage

1
icaList(DataList, nc, outputS = TRUE, verbose = TRUE)

Arguments

DataList,

list with datasets. Each matrix is a dataset to do ICA on

nc

number of components to select for ICA

outputS

boolean, if TRUE only the ICA components are returned. If FALSE, all icafast output is returned

verbose

boolean,if TRUE a progressbar is printed to the screen

Value

a list where each element is a matrix with single subject independent components

See Also

computeRVmat

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
set.seed(42)
S <- vector('list', length = 4)
X <- vector('list', length = 4)
for(i in 1:4){
S[[i]] <- cbind(runif(1000), runif(1000))
A <- matrix(data = runif(4, -2, 2), nrow = 2)
X[[i]] <- S[[i]] %*% t(A)
}
Output <- icaList(X, 2, outputS = T, verbose = T)
lapply(seq_along(Output), function(lambda) cor(Output[[lambda]], S[[lambda]] ) )

jeffreydurieux/TwostepClustering3way documentation built on Oct. 13, 2020, 2:33 a.m.