[FieldTrip] Cluster analysis on correlation statistics

Marshall, T.R. (Tom) t.marshall at fcdonders.ru.nl
Sat Dec 6 16:33:16 CET 2014

Hi Chris,

I wrote some functions for doing this a while ago and would be happy to share them.

Re: t stat vs r - as I understand it you can permute any statistic you want, it doesn't have to be a t or f. The montecarlo method for solving the multiple comparisons problem is not dependent on your choice of statistic (right guys?).

From: fieldtrip-bounces at science.ru.nl [fieldtrip-bounces at science.ru.nl] on behalf of Dr C A Brown [cb802 at cam.ac.uk]
Sent: 06 December 2014 12:33
To: fieldtrip at science.ru.nl
Subject: Re: [FieldTrip]        Cluster analysis on correlation statistics

Hello again,

Just to clarify my last email: I'm referring to correlation between either single trial data within subject, or averaged ERPs across subjects, with a behavioral variable. Not linear regression across conditions as is already implemented in the ft_statfun_depsamplesregrT function.

Many thanks

Dr Christopher Brown
Research Associate

Sent from a mobile device, please excuse my brevity.

----- Reply message -----
From: "Christopher Brown" <cb802 at cam.ac.uk>
To: <fieldtrip at science.ru.nl>
Subject: Cluster analysis on correlation statistics
Date: Sat, Dec 6, 2014 07:49

Dear all

I would like to use the cluster analysis functions in Fieldtrip on correlation statistics. I note there has been some discussion about this on this list in the past but I haven't come across the necessary ft_statfun_corr function to allow this analysis. It would be great if somebody has this code and could share it with me; otherwise, I will embark on writing it myself and sharing my results with everyone for feedback. Being new to Fieldtrip I would greatly appreciate any collaborative help with this. May I check my understanding on something before getting started: To allow for multiple comparisons correction using monte carlo for example, as part of a cluster analysis, I presume the output of the function must be t values rather than correlation coefficients? Any other hints as to how to write this are most welcome.

Kind regards



Dr Christopher Brown
Research Associate | CamPain Group | Division of Anaesthesia | School of Clinical Medicine | University of Cambridge

Box 93
Addenbrooke's Hospital
Hills Road
Cambridge CB2 0QQ

01223 256 995

More information about the fieldtrip mailing list