Computes spectral band power for each source from source-estimated EEG
data. Requires prior source estimation via eegSourceEstimate.
Arguments
- x
A PhysioExperiment object with source estimates.
- bands
Named list of frequency bands, each a numeric vector of length 2 (lower, upper Hz). If
NULL, uses standard EEG bands: delta (1-4), theta (4-8), alpha (8-13), beta (13-30), gamma (30-50).- source_assay
Name of the assay containing source data (default:
"source").
Value
A data.frame with columns:
- source_id
Integer source index.
- band
Character name of the frequency band.
- power
Numeric spectral power in the band.
References
Pascual-Marqui, R. D. (2002). Standardized low-resolution brain electromagnetic tomography (sLORETA). Methods and Findings in Experimental and Clinical Pharmacology, 24(Suppl D), 5-12.
Examples
pe <- make_eeg(n_time = 1000, n_channels = 19, sr = 250)
fm <- eegForwardModel(pe, method = "spherical", n_sources = 20)
pe <- eegSourceEstimate(pe, fm, method = "mne")
bp <- eegSourcePower(pe)
head(bp)
#> source_id band power
#> 1 1 delta 905.27188
#> 2 1 theta 92.44628
#> 3 1 alpha 602.26873
#> 4 1 beta 142.02806
#> 5 1 gamma 9.83678
#> 6 2 delta 737.85565