Description Usage Arguments Value See Also Examples
icaList, wrapper function to do single subject ICA analyses on a list of matrices
1 |
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 |
a list where each element is a matrix with single subject independent components
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]] ) )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.