computeRVmat: Compute modified RV matrix

View source: R/computeRVmat.R

computeRVmatR Documentation

Compute modified RV matrix

Description

This function computes a NxN modified RV matrix

Usage

computeRVmat(DataList = DataList, dist = TRUE, verbose = TRUE)

Arguments

DataList

a list with matrices

dist

boolean if TRUE distance object is returned

verbose

boolean if TRUE progressbar is printed to the console

Value

RVsS

a square similarity matrix of class matrix or distance object of class dist containing the pairwise modified RV values

Examples


## Not run: 
CICA_data <- Sim_CICA(Nr = 15, Q = 5, R = 4, voxels = 100, timepoints = 10,
E = 0.4, overlap = .25, externalscore = TRUE)
#Compute single subject ICAs (nClus equals length(ExampleData))
output <- CICA(DataList = CICA_data$X, nStarts = 1,
               nComp = 5, nClus = 9, verbose = FALSE)

RV <- computeRVmat(DataList = output$Sr, dist = TRUE,
                    verbose = FALSE)

# apply hierarchical clustering on RV output
hcl <- hclust(RV)
plot(hcl)

# low dimensional visualisation using Classical Multidimensional Scaling
mds <- cmdscale(RV)
plot(mds)

## End(Not run)


CICA documentation built on Sept. 11, 2024, 6:33 p.m.