find.clusters: find clusters

Description Usage Arguments Details Value Author(s) Examples

Description

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

Usage

1
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

1
2
3
4
  
# NO EXAMPLES
  
  

erpR documentation built on June 7, 2019, 3 a.m.