NOCIONS / letswave6

Letswave 6 - Matlab EEG signal processing toolbox
www.nocions.org/letswave6
48 stars 30 forks source link

Anova with permutation testing #157

Open lgoudman opened 6 years ago

lgoudman commented 6 years ago

Dear,

I’m currently using Letswave 6 to compare six merged datasets with the ANOVA with permutation testing. We have a between subject effect (3 types of pathology) and a within subject effect (2 test locations). I’m able to run the first permutation, however there is an error afterwards: “Index exceeds matrix dimensions. Error in RLW_ANOVA (line 181) datasets2(j).data(i,:,:,:,:,:)=datasets(b(j)).data(i,:,:,:,:,:);

Error in LW_ANOVA (line 82) [out_datasets(1),out_datasets(2),message_string,cluster_distribution]=RLW_ANOVA(datasets,configuration.parameters.factor_data,configuration.parameters.table_data,'enable_parallel',configuration.parameters.enable_parallel,'alpha',configuration.parameters.alpha,'permutation',configuration.parameters.permutation,'num_permutations',configuration.parameters.num_permutations,'cluster_statistic',configuration.parameters.cluster_statistic,'cluster_threshold',configuration.parameters.cluster_threshold);” Am I constructing this in a wrong way? We are not able to run the analysis with permutation testing. W: location B: patho Location 1 Patho 1 1 1 Patho 2 1 2 Patho 3 1 3 Location 2 Patho 1 2 1 Patho 2 2 2 Patho 3 2 3

Thank you for your help.

Lisa

amouraux commented 6 years ago

Could you send me a screenshot of how you configure the ANOVA?

Best wishes, André

On 31 Oct 2018, at 23:37, lgoudman notifications@github.com<mailto:notifications@github.com> wrote:

Dear,

I’m currently using Letswave 6 to compare six merged datasets with the ANOVA with permutation testing. We have a between subject effect (3 types of pathology) and a within subject effect (2 test locations). I’m able to run the first permutation, however there is an error afterwards: “Index exceeds matrix dimensions. Error in RLW_ANOVA (line 181) datasets2(j).data(i,:,:,:,:,:)=datasets(b(j)).data(i,:,:,:,:,:);

Error in LW_ANOVA (line 82) [out_datasets(1),out_datasets(2),message_string,cluster_distribution]=RLW_ANOVA(datasets,configuration.parameters.factor_data,configuration.parameters.table_data,'enable_parallel',configuration.parameters.enable_parallel,'alpha',configuration.parameters.alpha,'permutation',configuration.parameters.permutation,'num_permutations',configuration.parameters.num_permutations,'cluster_statistic',configuration.parameters.cluster_statistic,'cluster_threshold',configuration.parameters.cluster_threshold);” Am I constructing this in a wrong way? We are not able to run the analysis with permutation testing. W: location B: patho Location 1 Patho 1 1 1 Patho 2 1 2 Patho 3 1 3 Location 2 Patho 1 2 1 Patho 2 2 2 Patho 3 2 3

Thank you for your help.

Lisa

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/NOCIONS/letswave6/issues/157, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALJm8duttSl3JLBCKc7EVsCqkWyaSRkQks5uqiYygaJpZM4YFe0P.

lgoudman commented 6 years ago

Dear,

Below you can find the configuration of the ANOVA.

Thank you.

Lisa

anova

amouraux commented 6 years ago

Dear Lisa,

Seems correctly configured. There must be a small bug in the function. Could you send me the merged_epochs files so that I can test and debug?

André

On 1 Nov 2018, at 09:09, lgoudman notifications@github.com<mailto:notifications@github.com> wrote:

Dear,

Below you can find the configuration of the ANOVA.

Thank you.

Lisa

[anova]https://user-images.githubusercontent.com/40005710/47840158-af9e3400-ddb5-11e8-9b64-2953f2821da2.jpg

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/NOCIONS/letswave6/issues/157#issuecomment-434965033, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALJm8RlVa2T5GQj_6izW3hmLWVKQApJkks5uqqwwgaJpZM4YFe0P.

lgoudman commented 6 years ago

Dear,

Thank you for having a look at this.

This is the link towards the files: https://www.dropbox.com/sh/wcbne5a5tpzcxhd/AAAiYjjRbKPdBhFDmQ3f7OoCa?dl=0

Thank you.

Lisa