The purpose of this page is just to serve as todo or scratch pad for the development project and to list and share some ideas.

After making changes to the code and/or documentation, this page should remain on the wiki as a reminder of what was done and how it was done. However, there is no guarantee that this page is updated in the end to reflect the final state of the project

So chances are that this page is considerably outdated and irrelevant. The notes here might not reflect the current state of the code, and you should not use this as serious documentation.

Explain how to create for ft_*statistics as input into ft_*statistics (freq, timelock, or source) should be designed as follows: size MxN, where N is the number of trials/conditions

M is variable length. Along with, the other options cfg.ivar, cfg.uvar, cfg.wvar, and cfg.cvar may also need to be specified. They are an index (indices) into which row(s) of the correspond to 'independent variables', 'units of observation', 'within-block variables' and 'control variables', respectively.

Not all are needed: see statistics_*.m for what vectors it may include.

See and for examples on ivar and uvar. and for uvar.

Is there any explanation on the wiki for more on uvar and wvar? (Seems it is all on the email discussion list specific to people's questions).

Hierarchy of functions

(figure/diagram helpful

User calls ft_*statistics (freq, timelock, or source)

          cfg.method: different methods for calculating probability of null hypothesis
                       will call function: statistics_(cfg.method)

however, in ft_sourcestatistics, instead sourcestatistics_(cfg.method) is called, or statistics_wrapper if no method specified.

statistics_montecarlo.m (only) calls resampledesign.m

statistics_stat.m (deprecated: see )