<div dir="ltr"><div class="gmail_default" style="color:#333399">Hello Xinyi,</div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399">It's best if you epoch your continuous data with epoch settings that include the necessary baseline.</div><div class="gmail_default" style="color:#333399">At least try to do it within eeglab first, and if you have at least 500 ms (or longer) before the response, then that should be okay for epoching within eeglab.</div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399">If you want to "add your own baseline to EEG.data" then it's tricky, and requires good knowledge of eeglab and matlab. It is generally possible to recreate EEG.data in the way you want, but you have to do it by hand/code, and this capability does not exist in eeglab. Alternatively you could do the baselining yourself (not using an eeglab function) by computing a general baseline, and then subtracting that from each of your epochs (again, by hand/code within matlab, not using eeglab functions). In order to do this you need to have a clear idea of the necessary computations for baselining, need to do it for all channels, etc.. You could review the baselining function in eeglab for ideas. Also you have to make sure you have chosen and computed a correct/proper/valid baseline for your use. </div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399">You an review the time-frequency functions in eeglab, and you might see a way to provide a precomputed baseline to those functions, though I doubt that this exists. Overall, it is something that would be useful for eeglab, so if you build a solution, let the eeglablist know about it, and/or add it as an eeglab plugin.</div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399">If you haven't had a chance to, google eeglablist + your topic and you'll find some eeglablist posts on this topic. If you are copying methods from a published article, you can also try contacting authors who have already done this.</div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399"><br></div><img src="http://t.sidekickopen68.com/e1t/o/5/f18dQhb0S7ks8dDMPbW2n0x6l2B9gXrN7sKj6v4LXGsW5v0NNx5v0K_jW65jMbv3LvrVvW3FDF-t1k1H6H0?si=6719032905957376&pi=58012343-9b9f-42dd-83cc-5ac65f918845" style="display:none!important" height="1" width="1"></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 27, 2017 at 8:14 PM, Xinyi Li <span dir="ltr"><<a href="mailto:lxykh0700073@outlook.com" target="_blank">lxykh0700073@outlook.com</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 id="m_4947172616841559588divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p></p>
<p style="font-size:16px;font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
Hi,</p>
<p style="font-size:16px;font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<br>
</p>
<p style="font-size:16px;font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
I want to do response-locked epoching but also add a period before each stimulus as baselines for later time-freq analysis. <br>
</p>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont;font-size:16px">
I noticed that if I manually edit EEG.data to add baseline before each epoch, the latencies in the event field (and maybe some other things) won't change accordingly. And I think I cannot directly use the EEGlab epoch function to add the baseline since the
 reaction time of each trial varies so I won't know the prestimulus time period with regard to responses. </p>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont;font-size:16px">
<br>
</p>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont;font-size:16px">
So I'm wondering if you have any advice on how I could do this? Or is it possible to achieve this when doing time-frequency analysis?</p>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont;font-size:16px">
<br>
</p>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont;font-size:16px">
Thank you!</p>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont;font-size:16px">
<br>
</p>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont;font-size:16px">
Best,</p>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont;font-size:16px">
Xinyi</p>
<br>
<p></p>
</div>
</div>

<br>______________________________<wbr>_________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/<wbr>eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.<wbr>ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.<wbr>edu</a><br></blockquote></div><br></div>