Author: Kimberly Stachenfeld
Email: kim.stachenfeld@gmail.com
##Purpose Analyze EEG or LFP data via Hilbert Transform
##Data Preprocessing
##Contents
run_analysis
Example on how to callhilbert_stats
ex_KI2.mat
Example datasethilbert_stats
Returns ITC, ERSP, and phase angle correlation and relevant bootstrap statistics and plots from hilbert transform data bandpassed at frequency intervals.bootstrap_analysis
Calculates bootstrap and p-value by resampling for ITC and ERSPphase_angle_correlation
Calculates average correlation among phase angles for different trialsplot_results
plot raw data, ERSP, ITC, phase angle correlation, and bootstrap results
##Dependencies
###circstat toolbox
Philipp Behrens. A Matlab Toolbox for Circular Statistics. Journal of Statistical Software, 2009, 31(10).
####Required from circStat package:
circ_r
Resultant vector lengthcirc_mean
Mean direction of a sample of circular datacirc_confmean
Confidence intervals for mean directioncirc_corrcc
Circular-circular correlation coefficient
###EEGLAB package Arnaud Delorme, Scott Makeig. EEGLAB: an open source toolbox for analysis of single-trial EEG dynamics. Journal of Neuroscience Methods, 2004, 134:9-21. ####Required from eeglab package:
eegfilt
Low/High pass filter data