<div dir="ltr">Dear FieldTrip users,<div><br></div><div>can I do a correlation test with a behavioural variable in the source space using ft_statfun_correlationT? I want to do the same as in sensor space but use voxels instead of electrodes.</div><div><br></div><div>How can I define a region of interest to limit the number of tests?</div><div><br></div><div>My current approach is to compute the inverse solution using</div><div><br></div><div><div>cfg = [];</div><div>cfg.method = 'mne';</div><div>cfg.grid = leadfield;</div><div>cfg.headmodel = vol;</div><div>cfg.mne.prewhiten = 'yes';</div><div>cfg.mne.lambda = 3;</div><div>cfg.mne.scalesourcecov = 'yes';</div></div><div><div>cfg.rawtrial = 'yes';</div><div>cfg.keeptrial = 'yes';</div></div><div><div>source = ft_sourceanalysis(cfg, timelock);</div></div><div><br></div><div>and then simply call</div><div><br></div><div><div>cfg = [];</div><div>cfg.statistic = 'ft_statfun_correlationT';</div><div>cfg.method = 'montecarlo';</div><div>cfg.numrandomization = 1000;</div><div>cfg.design = [1.457 1.214 2.477 5.441 …];</div><div>cfg.ivar = 1;</div><div>cfg.alpha = 0.05;</div><div>cfg.tail = 0;</div><div>cfg.correcttail = 'alpha';</div><div>stat = ft_sourcestatistics(cfg, source);</div></div><div><br></div><div>but Matlab just remains busy and nothing happens.</div><div><br></div><div>Thank you.</div><div>Harold</div></div>