find.clusters {erpR}R Documentation

find clusters

Description

Internal function for mass.t.test, used in cluster based permutation to find clusters.

Usage

find.clusters(tscores, thresh, chan_hood, thresh_sign, min_nchans)

Arguments

tscores

a electrode by timepoitns matrix of t-scores

thresh

The threshold to be used to filter the t-scores.

chan_hood

an electrode by electrode matrix. As the one created with spatial_neighbours

thresh_sign

a value (-1 or 1), to specify is positive clusters or negative clusters are searcher.

min_nchans

Minimum number of channels to consider a cluster as valid.

Details

This is an R translation of find.clusters.m function in MASS univariate toolbox. The min_nchans has been added by me. The min_nchans is inclued as argument to take into account for volume conduction (i.e., it is unlikely that, especially with dense array, an effect is present only in one channel).

Value

A vector with clusters.

Author(s)

Giorgio Arcara

Examples

  
# NO EXAMPLES
  
  

[Package erpR version 0.4.1 Index]