demo/eeg.R

## EEG application from Nadin, Krivobokova, Enikeeva (2026),
## "Nonparametric two sample test of spectral densities".
## Note: this takes a long time (the series have about 7000 observations each).

library(sdf.test)

data(eeg_data, package = "sdf.test")
X1 <- subset(eeg_data, condition == "first_frontal_tDCS")$signal
X2 <- subset(eeg_data, condition == "second_frontal_tDCS")$signal

cores <- 2

test <- sdf.test(
  X1 = X1, X2 = X2,
  q1 = 4, method1 = "ML", Te = 2100, alpha = 0.05, cores = cores
)
test

Try the sdf.test package in your browser

Any scripts or data that you put into this service are public.

sdf.test documentation built on Dec. 2, 2026, 5:07 p.m.