[Eeglablist] Problems with statcondfieldtrip
Eric HG
erichg2013 at gmail.com
Thu Oct 23 08:24:28 PDT 2014
Dear list,
I've been trying to use the statcondfieldtrip function to calculate Monte
Carlo correction by first creating a neighbor matrix for all 19 electrodes:
neighbours(1).label = '';
neighbours(1).neighblabel = {};
Then transforming the power data from structs to cells:
DataCell{2,1} = PreS(freqb,:,:);
DataCell{1,1} = PostS(freqb,:,:);
and then:
[fval{freqb}, dfree{freqb}, pvalue{freqb}] = statcondfieldtrip(DataCell,
'paired', 'on', 'clusterstatistic', 'maxsum', 'neighbours', neighbours,
'method', 'montecarlo', 'naccu', [], 'mcorrect', 'cluster', 'alpha', 0.05,
'numrandomization', [], 'structoutput', 'on');
But it gives me the following error message:
Undefined function 'ft_freqstatistics' for input arguments of type 'struct'.
Error in statcondfieldtrip (line 175)
stat = ft_freqstatistics(cfg, newdata{:});
Thank you,
Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20141023/77e5a7e9/attachment.html>
More information about the eeglablist
mailing list