This repository contains all code for the paper:
Teichmann L., Moerel D., Baker C.I., Grootswagers T. (2022). An Empirically Driven Guide on Using Bayes Factors for M/EEG Decoding. Aperture Neuro, 1 (8) 1-10 https://www.doi.org/10.52294/82179f90-eeb9-4933-adbe-c2a454577289
To calculate Bayes Factors for your own time-series decoding data, download the matlab function "BFF_repo/codes/local_functions/bayesfactor_R_wrapper.m" (based on BayesFactor R package, https://cran.r-project.org/web/packages/BayesFactor/BayesFactor.pdf) or "BFF_repo/codes/local_functions/bayesfactor.m" (pure matlab version). We also uploaded an example of how to use Python instead of Matlab here "BFF_repo/codes/BF_colour_python.ipynb".