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.
ndarray
Array as returned by mne.find_events.
int
The reference event. The event defining the epoch of interest.
int
The target event. The event co-occurring in within a certain time window around the reference event.
float
The sampling frequency of the data.
float
The lower limit in seconds from the target event.
float
The upper limit border in seconds from the target event.
int
New ID for the new event.
int
| None
Fill 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