MICA-MNI / BrainStat

A statistics and context decoding toolbox for neuroimaging.
https://brainstat.readthedocs.io
Other
92 stars 21 forks source link

Homogenize multiple comparisons correction and expand functions in BrainStat #21

Closed MICA-MNI closed 3 years ago

MICA-MNI commented 4 years ago

something like

function slm = BrainStat_multipleComp(slm, type, vargin) switch type case 'no' slm.P = 1 - tcdf(slm.t, slm.df)
case 'bonferroni' slm.P = 1 - tcdf(slm.t, slm.df); slm.P = slm.P * length(slm.t); slm.P(slm.P>1) = 1; case 'fdr' q = SurfStatQ(slm, vargin) % can be replaced with contents of SurfStatQ slm.P = q; case 'rft' . ... case 'tfce' .... otherwise ...

end slm.Ptype = type; etc

ReinderVosDeWael commented 3 years ago

Closing this as its part of the refactoring discussion.