| get_power_spectra | R Documentation |
Computes power spectral density estimates using spectrum,
optionally aggregated across subjects or posterior predictive samples.
All arguments intended for the underlying spectral estimator should be
supplied through spectrum.args.
get_power_spectra(data, by.postn = FALSE, spectrum.args = list())
data |
A data frame with reaction time data. Must contain
|
by.postn |
Logical. If |
spectrum.args |
A named list of arguments passed directly to
|
The function organizes the data by subject (and optionally posterior sample index), computes spectra individually, interpolates spectra to a common frequency grid if needed, and averages them appropriately.
Either a data frame with columns freq and power, or (if
by.postn = TRUE) a list with frequency vector and a matrix of
spectra across posterior samples.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.