Description Usage Arguments Value Author(s) Examples
p.measures
calculates local or simple peak amplitude and latency for each condition
in the data frame. Values are calculated for grand average waveforms, as well as
for each individual subject. Values are based on the electrode, or electrode cluster for
dense arrays, provided in electrodes
.
1 | p.measures(data, electrodes, window, num.pts = 10, pol = "abs")
|
data |
A data frame in the format returned from |
electrodes |
A single value or concatenation of several values (to be averaged)
indicating which electrodes to include in generating the plot. At this time, if the
raw data files imported using |
window |
The beginning and end points of a time window of interest; this is different
from the beginning and ending times |
num.pts |
The number of bins to check for local peak measures. If no local peaks are
found, the simple peak will be returned. To force the simple peak, set |
pol |
The polarity of peaks to favor when multiple peaks are present. Entering
"pos" will locate the most positive peak. Entering "neg" will locate the most
negative peak. Entering "abs" will find the greatest deviation from 0, regardless
of the polarity (i.e., the absolute value). If a single peak is located, it will
be selected regardless of polarity specified. To avoid this, set |
A data frame with columns labeled:
Subject
Trial Type
Peak Latency
Peak Amplitude
A plot indicating the time window and identified peak(s)
Travis Moore
1 2 | # Calculate peak latency and amplitude
p.measures(ERPdata, electrodes = "V78", window = c(1000, 1500), num.pts=10, pol="abs")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.