Hello Elia,<br><br>It's not entirely clear to me what you are asking for help with, perhaps I've misunderstood. It sounds like your data will consist of epochs where the time-locking event for each epoch (i.e., the '0 ms' of the epoch) is S1, and the epoch also includes an S2 event later. (I'm not sure why you need to remove the boundary markers.)<br>
<br>To get epochs like that, you just choose S1 as the stimulus event when you epoch, there's no need to say anything about S2. But you will need to choose a large enough epoch that it will always fit S2; I'm not sure how much time there was between your S1 and S2, and whether that time was fixed or variable. If the amount of time is variable, you should just make sure your epoch is big enough to capture the S2 in the trial where it had the longest latency. (Or, I may be mistaken about this, but I think ERPLAB allows for epochs of varying lengths?).<br>
<br>To baseline-correct both events to the pre-stimulus interval before S1, just do a baseline correction using the default pre-stimulus interval after you've epoched the data. If you baseline-correct using the portion of the epoch before S1, that baseline is subtracted from the whole epoch, and thus S2 also gets baseline-corrected relative to that.<br>
<br>Best,<br>Steve<br><br><div class="gmail_quote">On Mon, Oct 1, 2012 at 2:59 PM, Elia Valentini <span dir="ltr"><<a href="mailto:elia.valentini@uniroma1.it" target="_blank">elia.valentini@uniroma1.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear EEGlabers,<div><br></div><div>I'm looking for the expert list help on some difficulties I'm having on adding and deleting markers to my data files, and baseline correcting epoched data.</div>



<div><br></div><div>As a premise our design implies: </div><div>a) two different set of files where a different cognitive manipulation is administered (factor 'mind-set')</div><div>b) two different type of blocks, pre-post manipulation (factor 'manipulation')</div>






<div><br></div><div>within each block we have two different sensory modalities delivered in pairs - S1,S2 - (we are interested in studying ERPs).</div><div><br></div><div>I did the following:</div><div>1) Marge all the single subject datasets (4 neuroscan .cnt files per session).</div>






<div>2) Downsample to 250 Hz (originally 1000 Hz).</div><div>2) Re-reference to the average (excluding mastoid and EOG electrodes).</div><div>3) Bandpass filter 0.5-30 Hz.</div><div>4) Manually reject gross artifacts from the continuous large datafile</div>




<div>5) Remove baseline and run ICA</div><div>6) Reject components by maps</div><div><br></div><div>I'm in the process of </div><div>7) Removing "boundary markers" produced by the manual rejection procedure (deleted one by one from the "Event values" interface. I guess this could be automated but I'm doing it manually).</div>



<div>8) Add markers (or rather labels as this are not phasic EEG events) for the levels of the variable 'mind-set' and 'manipulation' (I guess this could be automated but I'm doing it manually).</div>


<div>9) Then I need to generate epoched files from this large file according to the two modalities and locked to the first stimulus of each couple. However, while the first stimulus is baseline corrected to its relative pre-stimulus time, the second stimulus (S2) should be baseline corrected to the S1 prestimulus time (I did not come out yet with a scripting of it -  I guess may not be possible from the GUI).</div>



<div><br></div><div>Perhaps I have missed some important past discussion in the list, if this is the case please forgive me.</div><div>Thanks very much in advance for your time.</div><span class="HOEnZb"><font color="#888888"><div>
<br></div><div>Elia </div><div><br>

</div><div><br></div><div><br></div>
</font></span><br>_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.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.edu</a><br></blockquote></div><br><br clear="all"><br>-- <br>Stephen Politzer-Ahles<br>
University of Kansas<br>Linguistics Department<br><a href="http://people.ku.edu/~sjpa/" target="_blank">http://people.ku.edu/~sjpa/</a><br>