Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
example:source_statistics [2018/10/21 15:07]
42.49.180.224 [Source statistics]
example:source_statistics [2017/08/17 11:21] (current)
127.0.0.1 external edit
Line 3: Line 3:
  
 After source analysis (e.g. power estimation with the DICS method as explained in the [[tutorial:​beamformer|beamformer tutorial]]) you might want to subject the distributions of source power to statistical analysis. This can either be done on the single subject level or on the group level. For both cases, example code is presented. After source analysis (e.g. power estimation with the DICS method as explained in the [[tutorial:​beamformer|beamformer tutorial]]) you might want to subject the distributions of source power to statistical analysis. This can either be done on the single subject level or on the group level. For both cases, example code is presented.
 +
 ===== Single subject level, statistics over trials ===== ===== Single subject level, statistics over trials =====
 In the following, it is assumed that there is a single subject source reconstruction (//​source//​) which contains the source estimates for the single trials, and a design matrix (//​design//,​ 1xN vector) which indicates for each trial to which condition it belongs. By using **[[reference:​ft_sourcestatistics|ft_sourcestatistics]]** we will derive the statistical values for the source activation at each grid point. ​ In the following, it is assumed that there is a single subject source reconstruction (//​source//​) which contains the source estimates for the single trials, and a design matrix (//​design//,​ 1xN vector) which indicates for each trial to which condition it belongs. By using **[[reference:​ft_sourcestatistics|ft_sourcestatistics]]** we will derive the statistical values for the source activation at each grid point. ​
Line 72: Line 73:
 stat = ft_sourcestatistics(cfg,​ grandavgA{:​},​ grandavgB{:​});​ stat = ft_sourcestatistics(cfg,​ grandavgA{:​},​ grandavgB{:​});​
 </​code>​ </​code>​
 +