1
T = fffMat_onesample_stat( E, V, flagStat, base, nsimu, magic, niter )
3
%FFFMAT_ONESAMPLE_STAT - Generic nonparametric RFX test for the mean or median effect.
5
% SYNTAX: T = FFFMAT_ONESAMPLE_STAT( E, V, flagSTAT, [BASE, NSIMU, MAGIC, NITER] );
7
% E: matrix of estimated effects (assumed Nsubjects x Nvoxels)
9
% V: matrix of first-level variances, same size as Y. It is
10
% taken into account by MFX stats only; for non-MFX stats,
11
% just input anything (e.g. the scalar 0).
16
% 2 (Student T, DEFAULT)
20
% 6 (Wilcoxon signed rank statistic)
22
% 8 (Empirical median-based T, aka sign statistic)
23
% 10 (MFX corrected mean)
24
% 11 (MFX corrected median)
25
% 12 (MFX corrected Student T)
26
% 17 (MFX corrected empirical T)
27
% 18 (MFX corrected sign statistic)
29
% BASE: tested baseline value (DEFAULT = 0)
31
% NSIMU: number of sign permutations / bootstraps (DEFAULT = 1024).
32
% For permutations, when this number is 2^Nsubjects (or higher),
33
% all possible permutations are generated.
35
% MAGIC < 0 ==> randomize permutations
36
% MAGIC >= 0 ==> produce deterministic permutations in the range [magic, magic+nsimu[
38
% NITER: maximal iteration number of (Gaussian) EM algorithm used to identify
39
% parameters in MFX analyses
41
% T: returned vector of statistics
44
% Copyright (C) 2006 Alexis Roche
45
% $Revision: 1.6 $Date: 2006/07/27 $
47
error(sprintf('Missing MEX-file: %s', mfilename));
48
%magic < 0 ==> randomize permutations
49
%magic >= 0 ==> produce deterministic permutations in the range [magic, magic+nsimu[