[Eeglablist] Averaging conditions in STUDY vs Command Line
Arnaud Delorme
arno at ucsd.edu
Tue Aug 20 08:04:13 PDT 2013
Dear Nikola,
first compute your ERSP without removing the baseline. Second compute ersp1 = 10.^(ersp1log/10) and ersp2 = 10.^(ersp2log/10) for your two conditions, and take the average 10*log((ersp1+ersp2)/2). Let's continue this conversation off list as this might not be interesting to some users.
Best,
Arno
On 20 Aug 2013, at 02:33, Nikola Vukovic wrote:
> Dear Arno,
>
> All my conditions have the same number of trials, but I'm still getting different results using the two methods. How do I move between log and absolute power space in command line?
>
> Best,
> Nikola
>
>> Arnaud Delorme 20 August 2013 07:12
>> Dear Nikola,
>>
>> combining conditions will concatenate the trials for the 2 conditions. So if you have the same number of trials in both conditions, the result below should be equivalent. If you have different numbers of trials, the result will differ (if you use combine, the result will be the grand average of all the trials from both conditions - this will not be the case if you average two ERSP). There are also some issues of scaling. You should not average ERSP in log space, but in absolute power space.
>>
>> Arno
>>
>>
>>
>> Nikola Vukovic 19 August 2013 22:09
>> Dear list,
>>
>> Until now, I assumed that selecting several conditions and combining them into one condition (using the "combine selected values" in STUDY design window) simply averages the given conditions. Once I got more comfortable with command line scripting, I started averaging them manually (by plotting the conditions separately, then averaging their ersp data output. For example ersp_avg = (ersp{1,1} + ersp{2,1})/2). However, I find that the outputs I get when manually averaging, and when averaging variables in STUDY design are completely different (compare http://cl.ly/image/0E010I0g1x21 and http://cl.ly/image/3O01242E0b0M).
>> Where does this difference come from? What exactly does the "combine selected values" function do?
>>
>> Thank you,
>> Nikola
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20130820/ca63f280/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compose-unknown-contact.jpg
Type: image/jpeg
Size: 770 bytes
Desc: not available
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20130820/ca63f280/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: postbox-contact.jpg
Type: image/jpeg
Size: 1274 bytes
Desc: not available
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20130820/ca63f280/attachment-0001.jpg>
More information about the eeglablist
mailing list