<div dir="ltr"><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small">Hello Everyone,<br><br>I am attempting to use Fieldtrip's cluster-based permutation statistics on phase estimates (circular values). Thus I cannot use the statistic functions provided by Fieldtrip (e.g., "ft_statfun_depsamplesT.m"). I would like to integrate the circstat toolbox into Fieldtrip instead. Could someone help me validate that the following approach is correct:<br><br>Create a ft_statfun_[NewName].m that does:<br>1. For each sample (here: channel), calculate the F value using the circstat function circ_wwtest.m<br>2. Get the critical F value using "finv"<br><br>Would be happy and grateful about any input!<br>Regards<br>David<br>--<br>David Marcel BAUM<br><br>Instituto de Ingeniería Biológica y Médica<br>Pontificia Universidad Católica de Chile<br>Santiago, Chile<br></div></div>