<div dir="ltr">Dear list,<div><br></div><div>Here is my understanding of this.</div><div><br></div><div>The field ".avg" is in the output of timelockanalysis, which is the average across the trials. But in the output of freqanalysis there is no ".avg" field as the field "p<span style="font-size:13px">owspctrm</span><span style="font-size:13px"> </span>" is the "averaged" results.</div><div><br></div><div>So, if I want to create a difference wave of the freqanalysis between two conditions; I just use the ft_math to subtract the field "p<span style="font-size:13px">owspctrm</span>" in one condition from the other one.</div><div><br></div><div>I don't know if this is right; any suggestion would be appreciated.</div><div><br></div><div>Thanks</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div style="font-size:12.8px"><em style="font-family:tahoma,sans-serif;font-size:small">-------------</em></div><div style="font-size:12.8px"><em style="font-family:tahoma,sans-serif;font-size:small">Mr Xianwei Che</em><br></div><div style="font-size:12.8px"><em><font face="tahoma,sans-serif" size="2">PhD Candidate</font></em></div><div style="font-size:12.8px"><font face="tahoma,sans-serif" size="2"><em>Monash Alfred Psychiatry Research Centre (MAPrc)</em></font></div><div style="font-size:12.8px"><font face="tahoma,sans-serif" size="2"><em>Central Clinical School & the Alfred </em></font></div><div style="font-size:12.8px"><font face="tahoma,sans-serif" size="2"><em>Monash University</em></font></div><div style="font-size:12.8px"><font face="tahoma,sans-serif" size="2"><font size="1"><font size="2"><font face="georgia,serif"><font face="tahoma,sans-serif"><em>Level 4, 607 St Kilda Road, Melbourne </em><em>3004, </em><em>Australia</em></font></font></font></font></font></div></div></div></div></div></div>
<br><div class="gmail_quote">On 22 September 2016 at 14:26, Xianwei Che <span dir="ltr"><<a href="mailto:xianwei.che@monash.edu" target="_blank">xianwei.che@monash.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-size:13px">Dear list,</div><div style="font-size:13px"><br></div><div style="font-size:13px">I have some concerns of how to create difference wave between two conditions. Here is what I want to look at:</div><div style="font-size:13px"><br></div><div style="font-size:13px">I have grand average time-freqency data of two conditions ("GA1","GA2"), and one behavioural measurement. Now I want to do so some regression/correlation analysis between the behavioural measurement and the contrasted time-freqency data (GA1-GA2).</div><div style="font-size:13px"><br></div><div style="font-size:13px">I did some googling and it is suggested to create the difference wave first, as per here (<a href="http://www.fieldtriptoolbox.org/faq/how_can_i_test_an_interaction_effect_using_cluster-based_permutation_tests" target="_blank">http://www.fieldtriptoolbox.o<wbr>rg/faq/how_can_i_test_an_inter<wbr>action_effect_using_cluster-<wbr>based_permutation_tests</a>). </div><div style="font-size:13px"><br></div><div style="font-size:13px"><div><span style="color:rgb(0,0,0);font-family:calibri,geneva,arial,verdana,sans-serif;font-size:15px;text-align:justify">From these 4 data structures, you now make 2 difference data structures in the following way:</span><br></div><ul style="padding:0px;margin:0px 0px 1em 3.5em;line-height:1.5em;list-style-type:square;color:rgb(99,140,156);font-family:calibri,geneva,arial,verdana,sans-serif;font-size:15px;text-align:justify"><li style="margin:0px;padding:0px"><div style="padding:0px;margin:0px;color:rgb(0,0,0)">Copy GA11 to GAdiff11_12 and perform the assignment GAdiff11_12.avg=GA11.avg-GA12.<wbr>avg.</div></li><li style="margin:0px;padding:0px"><div style="padding:0px;margin:0px;color:rgb(0,0,0)">Copy GA21 to GAdiff21_22 and perform the assignment GAdiff21_22.avg=GA21.avg-GA22.<wbr>avg. </div></li></ul></div><div style="font-size:13px"><br></div><div style="font-size:13px">I got confused about the '.avg' here. Powspctrm is 4-d data in each GA (subject.channel.frequency.tim<wbr>e); so what is and how to calculate the average (.avg) in each GA structure. </div><div style="font-size:13px"><br></div><div style="font-size:13px">Or is it just a filed in each GA as I cannot find one.</div><div style="font-size:13px"><br></div><div style="font-size:13px">Thanks a lot</div><div style="font-size:13px"><br></div><div><div><div dir="ltr"><div><div dir="ltr"><div style="font-size:12.8px"><em style="font-family:tahoma,sans-serif;font-size:small">-------------</em></div><div style="font-size:12.8px"><em style="font-family:tahoma,sans-serif;font-size:small">Mr Xianwei Che</em><br></div><div style="font-size:12.8px"><em><font face="tahoma,sans-serif" size="2">PhD Candidate</font></em></div><div style="font-size:12.8px"><font face="tahoma,sans-serif" size="2"><em>Monash Alfred Psychiatry Research Centre (MAPrc)</em></font></div><div style="font-size:12.8px"><font face="tahoma,sans-serif" size="2"><em>Central Clinical School & the Alfred </em></font></div><div style="font-size:12.8px"><font face="tahoma,sans-serif" size="2"><em>Monash University</em></font></div><div style="font-size:12.8px"><font face="tahoma,sans-serif" size="2"><font size="1"><font size="2"><font face="georgia,serif"><font face="tahoma,sans-serif"><em>Level 4, 607 St Kilda Road, Melbourne </em><em>3004, </em><em>Australia</em></font></font></font></font></font></div></div></div></div></div></div>
</div>
</blockquote></div><br></div>