Note that this reference documentation is identical to the help that is displayed in Matlab when you type “help ft_timelockstatistics”.
FT_TIMELOCKSTATISTICS computes significance probabilities and/or critical values of a parametric statistical test
or a non-parametric permutation test.
Use as
[stat] = ft_timelockstatistics(cfg, timelock1, timelock2, ...)
where the input data is the result from either FT_TIMELOCKANALYSIS or
FT_TIMELOCKGRANDAVERAGE.
The configuration can contain the following options for data selection
cfg.channel = Nx1 cell-array with selection of channels (default = 'all'),
see FT_CHANNELSELECTION for details
cfg.latency = [begin end] in seconds or 'all' (default = 'all')
cfg.avgoverchan = 'yes' or 'no' (default = 'no')
cfg.avgovertime = 'yes' or 'no' (default = 'no')
cfg.parameter = string (default = 'trial' or 'avg')
Furthermore, the configuration should contain
cfg.method = different methods for calculating the significance probability and/or critical value
'montecarlo' get Monte-Carlo estimates of the significance probabilities and/or critical values from the permutation distribution,
'analytic' get significance probabilities and/or critical values from the analytic reference distribution (typically, the sampling distribution under the null hypothesis),
'stats' use a parametric test from the Matlab statistics toolbox,
'glm' use a general linear model approach.
The other cfg options depend on the method that you select. You
should read the help of the respective subfunction STATISTICS_XXX
for the corresponding configuration options and for a detailed
explanation of each method.
See also FT_TIMELOCKANALYSIS, FT_TIMELOCKGRANDAVERAGE
Undocumented local options:
cfg.inputfile = one can specifiy preanalysed saved data as input
The data should be provided in a cell array
cfg.outputfile = one can specify output as file to save to disk