m.measures {erp.easy} | R Documentation |
Calculate grand average and individual mean amplitudes and standard deviations
Description
m.measures
calculates mean amplitude and standard deviation for each condition
in the data frame, for the specified time window. Values are calculated based on 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
.
Usage
m.measures(data, electrodes, window)
Arguments
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 |
Details
Single electrodes can be passed to the package functions, or several electrodes can be provided (i.e., when using dense arrays) and those electrodes will be averaged together as a single electrode.
Value
A data frame with columns labeled:
Subject
Trial Type
Standard Deviation
Mean Amplitude
A plot indicating the specified time window
Author(s)
Travis Moore
Examples
# Calculate mean amplitude and standard deviation
m.measures(ERPdata, electrodes = "V78", window = c(1000, 1500))