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:effectsize [2018/10/21 15:00]
42.49.180.224 [Computing and using estimates of effect size]
example:effectsize [2017/10/09 17:07] (current)
robert added tags
Line 5: Line 5:
 The following code demonstrates how you can compute and plot the effect size.  The following code demonstrates how you can compute and plot the effect size. 
  
-&lt;code&gt;+<code>
 % find the interesting segments of data % find the interesting segments of data
 cfg = []; cfg = [];
Line 89: Line 89:
 % Huge        2.00 % Huge        2.00
  
-&lt;/code&gt;+</code>
  
 It is interesting to see how the effect size increases by taking the average over more channels and time points. It is interesting to see how the effect size increases by taking the average over more channels and time points.
  
-&lt;code&gt;+<code>
  
 %% %%
Line 101: Line 101:
  
 % now repeat the computation of Cohen'​s d above % now repeat the computation of Cohen'​s d above
-&lt;/code&gt;+</code>
  
  
 Proper preprocessing of the data also increases the effect size. Proper preprocessing of the data also increases the effect size.
  
-&lt;code&gt;+<code>
 %% %%
  
Line 120: Line 120:
 h2 = histcounts(x2,​edges);​ h2 = histcounts(x2,​edges);​
 bar(edges(1:​end-1),​[h1;​ h2]'); legend({'​FC',​ '​FIC'​}) bar(edges(1:​end-1),​[h1;​ h2]'); legend({'​FC',​ '​FIC'​})
-&lt;/code&gt;+</code>