Skip to content

Commit

Permalink
Merge pull request #6 from iancharest/master
Browse files Browse the repository at this point in the history
fix for independent t-test variance normalisation of group 2
  • Loading branch information
markallenthornton authored Dec 21, 2018
2 parents 0762a5a + bcfbb14 commit 9fcb55e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matlab_tfce_ttest_independent.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
end

% calculate true mean image
truestat = (mean(imgs1,4)-mean(imgs2,4))./sqrt(var(imgs1,0,4)/nsub1+var(imgs2,0,4)/nsub1);
truestat = (mean(imgs1,4)-mean(imgs2,4))./sqrt(var(imgs1,0,4)/nsub1+var(imgs2,0,4)/nsub2);
implicitmask = ~isnan(truestat);
tfcestat = transform(truestat,H,E,C,dh);

Expand Down

0 comments on commit 9fcb55e

Please sign in to comment.