Code for state-dependent effective connectivity analysis using NHSMM-MAR-sdNC.
The example scripts provide some basic demonstration of the framework NSHMM-MAR-sdNC utilization. Under Examples/, there are data and scripts used for the analysis conducted in the manuscript.
The complete code in Simulation1. and Simulation2. may be time-consuming, one may quickly get to know the NSHMM-MAR-sdNC utilization from "Basic demonstration about NSHMM-MAR-sdNC" and code in Simulation3.
Further information about the competitive model HMM-MAR is referred to
Diego Vidaurre, Andrew J. Quinn, Adam P. Baker, David Dupret, Alvaro Tejero-Cantero and Mark W. Woolrich (2016) Spectrally resolved fast transient brain states in electrophysiological data. NeuroImage. Volume 126, Pages 81–95.
The toolbox HMM-MAR is available at https://github.com/OHBA-analysis/HMM-MAR.