ar_eogcor: Detect high component correlation with eye channels

View source: R/ar_for_ica.R

ar_eogcorR Documentation

Detect high component correlation with eye channels

Description

Checks the correlation between individual components of an eeg_ICA decomposition and the electrooculogram channels of an eeg_epochs dataset.

Usage

ar_eogcor(decomp, data, ...)

## S3 method for class 'eeg_ICA'
ar_eogcor(
  decomp,
  data,
  HEOG,
  VEOG,
  threshold = NULL,
  plot = TRUE,
  bipolarize = TRUE,
  ...
)

Arguments

decomp

ICA decomposition

data

Original data

...

Other parameters

HEOG

Horizontal eye channels

VEOG

Vertical eye channels

threshold

Threshold for correlation (r). Defaults to NULL, automatically determining a threshold.

plot

Plot correlation coefficient for all components

bipolarize

Bipolarize the HEOG and VEOG channels?

Value

A character vector of component names that break the threshold.

Methods (by class)

  • eeg_ICA: Method for eeg_ICA objects.

Author(s)

Matt Craddock, matt@mattcraddock.com

References

Chaumon, M., Bishop, D.V., Busch, N.A. (2015). A practical guide to the selection of independent components of the electroencephalogram for artifact correction. J Neurosci Methods. Jul 30;250:47-63. doi: 10.1016/j.jneumeth.2015.02.025


neuroconductor/eegUtils documentation built on Feb. 3, 2023, 5:33 p.m.