Author: Kimberly Stachenfeld
Email: kim.stachenfeld@gmail.com
##Purpose Analyze EEG or LFP data via Hilbert Transform
##Data Preprocessing
##Contents
run_analysisExample on how to callhilbert_statsex_KI2.matExample datasethilbert_statsReturns ITC, ERSP, and phase angle correlation and relevant bootstrap statistics and plots from hilbert transform data bandpassed at frequency intervals.bootstrap_analysisCalculates bootstrap and p-value by resampling for ITC and ERSPphase_angle_correlationCalculates average correlation among phase angles for different trialsplot_resultsplot 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_rResultant vector lengthcirc_meanMean direction of a sample of circular datacirc_confmeanConfidence intervals for mean directioncirc_corrccCircular-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:
eegfiltLow/High pass filter data