Hi Donalad and other SPMers,I have updated the GLMFlex from 2012-12-10 to 2013-09-09, and now when I run a ANOVA with a between-subject (Controls versus clinical group) and a within-subject (time 1 vs time 2). I have setup the script asclear IN; clear F; clear I;IN.N_subs = [19 12];IN.Between = [1 2];IN.BetweenLabs = {{'All'} {'Clinical', 'Controls'}};IN.Within = [2];IN.WithinLabs = {'Time1' 'Time2'};IN.FactorLabs = {'F1' 'F2'};IN.Interactions = {[2 3]};IN.EqualVar = [1 0 0];IN.Independent = [1 1 0];F = CreateDesign(IN);
figure(20); imagesc(F.XX); shgI.OutputDir = pwd;I.F = F;I.Scans = Scans;I.RemoveOutliers = 0;I.minN = 2;I.DoOnlyAll = 1;I.CompOpt=0;
I = GLM_Flex(I);I.Cons(1).name = 'All';I.Cons(1).Groups = {1};I.Cons(1).Levs = [1];I.Cons(1).ET = [];I.Cons(1).mean = 0;I.Cons(2).name = 'Group Effect';I.Cons(2).Groups = {2 3};I.Cons(2).Levs = [2];I.Cons(2).ET = [];I.Cons(2).mean = 0;I.Cons(3).name = 'Time Effect';I.Cons(3).Groups = {4 5};I.Cons(3).Levs = [2];I.Cons(3).ET = [];I.Cons(3).mean = 0;I.Cons(4).name = 'Group by Time';I.Cons(4).Groups = {6 7 8 9};I.Cons(4).Levs = [2 2];I.Cons(4).ET = [];I.Cons(4).mean = 0;I = GLM_Flex_Contrasts(I);Now when I run the script, I get the following error:>> GLMFlex_scriptFinished Creating Factor MatrixFinished Creating Main EffectsFinished Creating Two Way InteractionsFinished Creating Three Way InteractionsFinished Creating Four Way InteractionsFinished Creating Design Matrix.Finished Other Stuff.Reading In Image Files:Processing Set #62No go
Error using GLM_Flex (line 556)Something went wrong. No voxels were anlyzed. This is most commonly cause by a mis-specified I.minN or a problem with performing thevariance/covariance correctionError in GLMFlex_script (line 28)I = GLM_Flex(I);I am not sure what exactly is I.minN is doing and what value should I assign to it.ThanksMuhammad