Define new events by co-occurrence of existing events.
This function can be used to evaluate events depending on the temporal lag to another event. For example, this can be used to analyze evoked responses which were followed by a button press within a defined time window.
ndarrayArray as returned by mne.find_events.
intThe reference event. The event defining the epoch of interest.
intThe target event. The event co-occurring in within a certain time window around the reference event.
floatThe sampling frequency of the data.
floatThe lower limit in seconds from the target event.
floatThe upper limit border in seconds from the target event.
intNew ID for the new event.
int | NoneFill event to be inserted if target is not available within the time window specified. If None, the ‘null’ events will be dropped.
mne.event.define_target_events#Define target events based on time lag, plot evoked response
Plot single trial activity, grouped by ROI and sorted by RT