<div dir="ltr"><pre>Dear fieldtrip users,
I would like to do sourcestatistics on a group level with eeg data. I have a
pre and post intervention measurement for each of my 10 subjects
. After source reconstruction using an DICS beamformer
and volume normalization, I calculated the sourcegrandaverage for the pre and
post condition and i have avg.pow for each subject.<br><br> However, when I use the grandaverage results in ft_sourcestatistics in the
configuration shown below and plot the result I just get a blank anatomical
mri. It only runs with cfg.parameter="pow" .I tried with cfg.parameter = 'avg.pow' it doesnt run. <br>Do I have to set any additional parameters or am I making some mistake?<br>
cfg=[];
cfg.dim = grandAVGsourcePre.dim;
cfg.method = 'montecarlo';
cfg.statistic = 'depsamplesT';
cfg.parameter = 'pow';
cfg.correctm = 'cluster';
cfg.numrandomization = 1000;
cfg.alpha = 0.05;
cfg.tail = 0;
nsubj=length(sourcePre.trial);
cfg.design(1,:) = [1:nsubj 1:nsubj];
cfg.design(2,:) = [ones(1,nsubj) ones(1,nsubj)*2];
cfg.uvar = 1;
cfg.ivar = 2;
stat = ft_sourcestatistics(cfg, grandAVGsourcePre, grandAVGsourcePost);<br></pre><pre><font face="arial, sans-serif"><b><font color="#000099">and next interpolation<br></font></b></font> <br> cfg = [];<br>
cfg.voxelcoord = 'no';<br> cfg.parameter = 'mask';<br> cfg.interpmethod = 'nearest';<br> cfg.coordsys = 'mni';<br>
mask = ft_sourceinterpolate(cfg,stat,mri);<br> statplot.mask = mask.mask;<br><br><br><font face="arial, sans-serif"><b><font color="#000099">and then for plotting</font></b></font><br>
cfg = [];<br>cfg.method = 'slice';<br>cfg.funparameter = 'stat';<br>cfg.maskparameter = 'mask';<br> cfg.funcolorlim = [-0.1 0.1];<br> cfg.opacitylim = [-0.1 0.1]; <br>figure<br>ft_sourceplot(cfg, statplot);<br>
<br></pre><div><div dir="ltr"><font face="arial, sans-serif"><div><b><div style="color:rgb(0,0,153)"><font color="#000099"><br><br><br></font></div><div style="color:rgb(0,0,153)"><font color="#000099"><br></font></div><div style="color:rgb(0,0,153)">
<font color="#000099"><br><br><br><br>===============================================</font></div></b><br><b><img alt="Inline image 1" src="cid:ii_13f6c73ea79c7353"><br><br></b></div></font><font face="arial, sans-serif"><div>
<b>Best Regards</b></div></font><font face="arial, sans-serif"><div><b>Chaitanya Srinivas Lanka <br><br><span style="color:rgb(153,153,153)">Wiss. Mitarbeiter </span></b><span style="color:rgb(153,153,153)"><b><font face="arial, sans-serif">PhD Student</font><font face="arial, sans-serif"><b><br>
</b></font><span><font><span>Functional and Restorative Neurosurgery </span></font></span><span><font><span><font face="arial, sans-serif">Neural Information Processing</font></span></font></span><span><font><span><br>Neurosurgical University Hospital</span></font></span></b><b><span><font><font face="arial, sans-serif"><b> </b></font></font></span><span><font><font face="arial, sans-serif">Graduate Training Center for Neuroscience</font></font></span><span><font> <br>
<span>Eberhard Karls University </span></font></span><span><font><font face="arial, sans-serif">Eberhard Karls University</font></font></span><span><font><font face="arial, sans-serif"><b> </b></font><span><br>
</span></font></span></b></span><font face="arial, sans-serif"><span style="color:rgb(153,153,153)"><b><span><font><span>Otfried-Mueller-Str.45</span> </font></span>Österbergstr. 3</b></span><b><span style="color:rgb(153,153,153)"><font><span> <br>
D-72076 Tuebingen</span></font></span> </b><font face="arial, sans-serif"><b><span style="color:rgb(153,153,153)"><font><span>D-72074 Tuebingen</span></font></span></b></font></font><b><br>
</b></div><div><b><font color="#006600">Mobile Phone Number : </font><a value="+4917679038395">+49-176-79035731<br></a></b><a value="+4917679038395"><font face="arial, sans-serif"><b><font color="#000099">===============================================</font></b></font><br>
</a></div>
</font></div></div>
</div>