Detects the first persistent signed deviation from the baseline mean above a multiple of the baseline standard deviation.
Usage
mepLatency(
x,
response_window_ms = c(5, 50),
epoch_start_ms = 0,
baseline_window_ms = NULL,
threshold_sd = 3,
min_consecutive_ms = 1,
channels = NULL,
assay_name = NULL
)Arguments
- x
A
PhysioExperimentwith time x channels x trials MEP data.- response_window_ms
Search window relative to the TMS pulse.
- epoch_start_ms
Time of the first epoch sample relative to the pulse.
- baseline_window_ms
Optional baseline interval. The default uses all pre-stimulus samples.
- threshold_sd
Baseline standard-deviation multiplier.
- min_consecutive_ms
Required duration of a threshold crossing.
- channels
Optional channel labels or 1-based indices.
- assay_name
Optional assay name.