<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Sonja<div><br></div><div>I think you are almost there. What I am not sure about is the name of the field in the grandaverage structure which contains the concatenated individual subject data. Isn't this field called '.trial'? In that case you should specify cfg.parameter to be 'trial'. If this is not the cause of the problem, did you check the individual subject volumes? Do these contain colored data? What do you exactly mean by getting a blank mri? Does the stat.stat field contain only zeros, nans or something else?</div><div><br></div><div>Best,</div><div><br></div><div>Jan-Mathijs<br><div><div><br></div><div>On Dec 2, 2011, at 12:16 PM, Sonja Suntrup wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Dear fieldtrip users,<br>I would like to do sourcestatistics on a group level with meg data. I have a<br>pre and post intervention measurement for each of my 21 subjects<br>(within-subjects design). After source reconstruction using an LCMV beamformer<br>and volume normalization I calculated the sourcegrandaverage for the pre and<br>post condition with the parameter cfg.keepindividual = 'yes'.<br>However, when I use the grandaverage results in ft_sourcestatistics in the<br>configuration shown below and plot the result I just get a blank anatomical<br>mri. Do I have to set any additional parameters or do I make a general<br>mistake? Whould you recommend to use a cluster-based permutation test<br>comparable to ft_timelockstatistics and would I have to set the same<br>parameters in ft_sourcestatistics then?<br><br>cfg=[];<br>cfg.dim = grandAVGsourcePre.dim;<br>cfg.method = 'montecarlo';<br>cfg.statistic = 'depsamplesT';<br>cfg.parameter = 'avg.pow';<br>cfg.correctm = 'cluster';<br>cfg.numrandomization = 100;<br>cfg.alpha = 0.05;<br>cfg.tail = 0;<br><br>nsubj=length(sourcePre.trial);<br>cfg.design(1,:) = [1:nsubj 1:nsubj];<br>cfg.design(2,:) = [ones(1,nsubj) ones(1,nsubj)*2];<br>cfg.uvar = 1;<br>cfg.ivar = 2;<br>stat = ft_sourcestatistics(cfg, grandAVGsourcePre, grandAVGsourcePost);<br><br>Your help is greatly appreciated!<br>Best,<br>Sonja<br><br><br>-- <br>Dr. med. Sonja Suntrup<br>Institute for Biomagnetism and Biosignalanalysis<br>University of Muenster<br>Malmedyweg 15<br>48149 Münster, Germany<br><br>_______________________________________________<br>fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>http://mailman.science.ru.nl/mailman/listinfo/fieldtrip<br></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Jan-Mathijs Schoffelen, MD PhD </div><div><br></div><div>Donders Institute for Brain, Cognition and Behaviour, <br>Centre for Cognitive Neuroimaging,<br>Radboud University Nijmegen, The Netherlands</div><div><br></div><div>Max Planck Institute for Psycholinguistics,</div><div>Nijmegen, The Netherlands</div><div><br></div><div><a href="mailto:J.Schoffelen@donders.ru.nl">J.Schoffelen@donders.ru.nl</a></div><div>Telephone: +31-24-3614793</div></div></span></div></span></div></span></div></span></div></span></span>
</div>
<br></div></body></html>