Hi,
When I tried to run bst_granger on Matlab(2012b), I always got the following message
[connectivity, pValue, connectivityV, pValueV, X, Y] = bst_granger(sinks, sources, 20, inputs)
Undefined function 'bst_vgarch' for input arguments of type 'char'.
Error in bst_granger (line 262)
[W, C, D, R, S, information, rhoBest] = ... % bivariate ARCH modeling
all the parameters were set following the examples in the code:
% [inMean, inVariance] = bst_granger(X, Y, 5, inputs);
% [inMean, inVariance] = bst_granger(X, , 5, inputs); % every pair in X
% [inMean, inVariance] = bst_granger(X, , 20, inputs); % more delays in AR
% inputs.nTrials = 10; % use trial-averaged covariances in AR estimation
% inputs.standardize = true; % zero mean and unit variance
% inputs.flagFPE = true; % allow different orders for each pair of signals
% inputs.lag = 3; % estimate causality in variance using lag-3 ARCH model
% inputs.flagELM = true; % find the optimal lag rather than always given lag
% inputs.rho = 50; % parameter to tune estimation of ARCH model
% % higher -> more stability, much slower
% % lower -> might not converge, much faster
% % go in multiples of 5 up or down as desired
% % 50 is a good start for rho
I have updated my Brainstorm to the latest version and still could not found the bst_vgarch function in the toolbox.
Thank you very much!
Lu