> On 16 Aug 2017, at 12:46, Georgette Argiris <
georg...@gmail.com> wrote:
>
> Thank you for the code regarding the singleton neighborhood, I will try it out!
> Regarding the ROI analysis, I don't plan on doing MVPA classification on this data. I just wanted to do a simple contrast
> analysis in five different ROIs that would be corrected for multiple comparisons using permutation testing.
> What I ended up doing was creating one mask composed of all of my five ROIs, subtracting one condition from the
> other (as one would do in a contrast analysis) and checking against chance (which would be 0- ultimately a one-way t-test
> where 0 would mean no difference) using cosmo_monte_carlo_stat.
If you want to do univariate ROI analysis, in the usual case one computes the average response value over features (voxels) for each condition. If you have ROIs with, say, 100, 110, 120, 130, and 140 voxels for 3 conditions,
then first one would take the average in each ROI separately. Thus if the first ROI has ds.samples 100x3, use
ds_avg=cosmo_fx(ds,@(x)mean(x,2),{},2)
to compute the average, which is a 3x1 dataset.
You could then also compute differences between conditions, for example condition 1 minus condition 2:
ds_1vs2=cosmo_slice(ds_avg,1);
ds_1vs2.samples=ds_avg.samples(1,:)-ds_avg.samples(2,:)
where ds_1vs2.samples is a scalar.
Averages from multiple ROIs, if put in a cell ds_avg_cell can be combined into a single dataset using cosmo_stack(ds_cell,2)
Then averages from multiple participants can be stacked along the first dimension using cosmo_stack(...,1). After setting .sa.chunks and .sa.targets, cosmo_stat or cosmo_montecarlo_cluster_stat can be used.
> However, my concern was that 1.) theoretically, there may be
> a difference in creating one big mask of my ROIs as opposed to single masks (one for each ROI) and controlling for multiple comparisons
> in that way
See above - for univariate ROI analysis the typical approach is to compute the average response over voxels.
> and 2.) that cosmo_monte_carlo_stat is supposed to be used for classification accuracies/correlations and not simple
> contrast analysis where subtraction is used.
cosmo_montecarlo_cluster_stat is quite universal and can - with an appropriate neighborhood - also be used for ROIs and for simple univariate contrast group analysis.
Does this answer your questions?