Commit 0af97505 authored by Meryem Ayse Yucel's avatar Meryem Ayse Yucel
Browse files

Update hmrR_tCCA.m

Reflecting changes Steve made on tCCAaux_inx: user to put 1/0.
parent 5bfcf19d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -29,7 +29,8 @@
%            3 - 3 ctr if <1  correlation threshold, if =>1 number of regressors.
%                   Redundant if flagICRegressors = 1;
% tCCAaux_inx -  Indices of the aux channels to be used to generate
% regressors.
% regressors. 0 for the indices of unused aux channels, 1 for included
% aux channels.
% rhoSD_ssThresh - max distance for a short separation measurement. Set =0
%          if you do not want to regress the short separation measurements.
%          Follows the static estimate procedure described in Gagnon et al (2011).
@@ -73,6 +74,7 @@ function [Aaux, rcMap] = hmrR_tCCA(data, aux, probe, runIdx, subjIdx, mlActMan,
%%

%% flags and tCCA settings
tCCAaux_inx = find(tCCAaux_inx); % Convert flags to list of indices
flags.pcaf =  [0 0]; % no pca of X or AUX
% flags.shrink = true; % perform shrinkage in the CCA
flags.shrink = false;  % JD: set to false because rtcca generate error, "Undefined function or variable 'cshrink'".