[FieldTrip] FT_STATFUN_DEPSAMPLESREGRT Across Subjects For Cluster Based Permutation Test
stieg030 at umn.edu
Thu Sep 27 16:29:07 CEST 2018
I am hoping to extend the technique outlined in the following page to
behavioral data across time.
I have behavioral data for each subject over a series of experiments and I
want to test whether changes in averaged topographic frequency information
is related to these behavioral changes over time across a population of
subjects. The way I was hoping to code this up is as follows:
subject 1 behavioral data = [0.3 0.6 0.9]
subject 2 behavioral data = [0.2 0.6 0.75]
cfg.statistic = ft_statfun_depsamplesregt;
design(1,:) = [0.3 0.6 0.9 0.2 0.6 0.75]
design(2,:) = [1 1 1 1 2 2 2 2]
cfg.design = design;
cfg.ivar = 1;
cfg.uvar = 2;
I am assuming here that the unit of observation is subjects and I have a
time series of variables for each subject placed in ivar. finally the input
to ft_freqstatistics will be an averaged struct and the powspctrm with have
dimord = subject_channel_frequency_time.
Am I doing this correctly? Will this work? If not, do you have any
suggestions for how to continue?
Additionally some subjects participated in 7 experiments and some
participated in 10. Can I NaN out the missing data, or should I limit this
analysis to the experiments that all subjects participated in?
Thanks for the help!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fieldtrip