# Applying baseline extracted from other epochs

**URL:** <https://mne.discourse.group/t/applying-baseline-extracted-from-other-epochs/2099>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [March 4, 2020, 8:39am UTC](https://mne.discourse.group/t/applying-baseline-extracted-from-other-epochs/2099 "2020-03-04T08:39:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [March 4, 2020, 8:39am UTC](https://mne.discourse.group/t/applying-baseline-extracted-from-other-epochs/2099/1 "2020-03-04T08:39:21Z")

</div>

External Email - Use Caution

Hi,

I am working with EEG data obtained via a jittered experimental design.  
At this moment, I have epoched my data locked on the responses made by the subjects.  
Previously, I epoched the data by locking on the stimulus onset.  
I would like to use the prestimulus interval, which is contained in the stimulus-locked epochs, to baseline my response-locked data.  
Is this possible in MNE?

Thank you,

Pieter  
-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20200304/cae0657e/attachment-0001.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200304/cae0657e/attachment-0001.html)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [March 4, 2020, 8:09pm UTC](https://mne.discourse.group/t/applying-baseline-extracted-from-other-epochs/2099/2 "2020-03-04T20:09:55Z")

</div>

External Email - Use Caution

hi Pieter,

I think you need to do this a bit manually I fear.

If you just need to do analysis of evoked it's easier. It's like  
computing 2 evokeds  
and subtracting the time average of one to the other one.

Alex

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [March 4, 2020, 8:14pm UTC](https://mne.discourse.group/t/applying-baseline-extracted-from-other-epochs/2099/3 "2020-03-04T20:14:05Z")

</div>

External Email - Use Caution

Hi Pieter,

I did something similar for a project a couple years ago, and as Alex says, I had to do it manually. You can see my approach here:

[https://github.com/drammock/eeg-phone-coding/blob/master/020-make-epochs.py#L105-L156](https://github.com/drammock/eeg-phone-coding/blob/master/020-make-epochs.py#L105-L156)

-- dan  
Daniel McCloy  
[https://dan.mccloy.info](https://dan.mccloy.info)  
Research Scientist  
Institute for Learning and Brain Sciences  
University of Washington

??? Original Message ???
