<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.<wbr>org/faq/how_can_i_test_an_<wbr>interaction_effect_using_<wbr>cluster-based_permutation_<wbr>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.<wbr>time); 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 class="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>
</div>