See also nirs.modules.MixedEffects
nirs.modules.MixedEffectsConnectivity
This module runs second-level (or group) statistical models for connectivity analysis. This modules has similar explanation (Wilkinson-Roger’s notation, continuous variable, categorical variable, etc) with nirs.modules.MixedEffects.
Example Usage (Continuous variable):
for i = 1:5
raw(i) = nirs.testing.simData_connectivity_shortsep;
end
job = nirs.modules.Resample();
job.Fs = 1; %For speed
job = nirs.modules.OpticalDensity(job);
job = nirs.modules.BeerLambertLaw(job);
hb = job.run(raw);
job = nirs.modules.Connectivity();
job.AddShortSepRegressors = true; %false if the SS-data is not available
ConnStats = job.run(hb);
job = nirs.modules.MixedEffectsConnectivity();
GroupConnStats = job.run(ConnStats);
GroupConnStats.draw(‘R’,[],‘pvalue<0.05’)