loreta2fieldtrip
Hanukaev Dmitri
sdim14hg at T2.TECHNION.AC.IL
Sun Dec 10 14:44:59 CET 2006
Hello
we want to do T depandent statistic over group of subjects with two
conditions to find time -space cluster for Loreta's output.As you advised
we used a monte carlo method as in attached file.We use one person's data
and low number of rundomization to simplify function .
WE got error message :
"
??? In an assignment A(:) = B, the number of elements in A and B
must be the same.
Error in ==> fieldtrip-20061202\private\clusterstat at 111
tmp(cfg.inside) = postailobs;
Error in ==> statistics_montecarlo at 308
stat = clusterstat(cfg, statrand, statobs);
Error in ==> fieldtrip-20061202\private\statistics_wrapper at 233
[stat, cfg] = statmethod(cfg, dat, cfg.design);
Error in ==> sourcestatistics at 112
stat = statistics_wrapper(cfg, varargin{:});%
***********************monte here
Error in ==> try1 at 25
stat = sourcestatistics(cfg, cond1{:}, cond2{:}); "
Can you help us?
sincerely
-------------- next part --------------
clc;clear all;close all;
cond1{1}=loreta2fieldtrip('ao_low.slor');
cond1{2}=cond1{1};cond1{3}=cond1{1};cond1{4}=cond1{1};cond1{5}=cond1{1};cond1{6}=cond1{1};
cond1{7}=cond1{1};cond1{8}=cond1{1};cond1{9}=cond1{1};cond1{10}=cond1{1};
cond2{1}=loreta2fieldtrip('ao_emotionaly.slor');
cond2{2}=cond2{1};cond2{3}=cond2{1};cond2{4}=cond2{1};cond2{5}=cond2{1};cond2{6}=cond2{1};
cond2{7}=cond2{1};cond2{8}=cond2{1};cond2{9}=cond2{1};cond2{10}=cond2{1};
cfg.method='montecarlo';
cfg.correctm='cluster';
cfg.statistic= 'depsamplesT';
cfg.parameter= 'mom';
cfg.numrandomization=50;
cfg.design = [1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2
1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 ] ;
cfg.ivar = 1; % row with the independent variable (condition) in the design
cfg.uvar = 2; % row with the unit of observation (subject) in the
% design matrix;
stat = sourcestatistics(cfg, cond1{:}, cond2{:});
More information about the fieldtrip
mailing list