this page is under development. The plan is to move the code of “statistics_stats” to this page and to explain it in more detail.
Although FieldTrip includes a number of functions for statistical analysis, there are also occasions where it makes a lot of sense to use the MATLAB statistics toolbox. The first part of this example page will explain how to format the FieldTrip data structures into a convenient matrix representation for statistical analysis. The second part will go over some of the statistical tests. The third part will demonstrate how you can reshape the results back into a FieldTrip-compatible format that allows you to easily visualize the statistical results together with the raw data effect.
To check whether you have the statistics toolbox, you can do
ft_hastoolbox('statistics')
This function will return 1 (true) if you have it installed and have a license for it, and 0 (false) if you don't.
Share this page: