LIMO-EEG-Toolbox / limo_tools

Hierarchical Linear Modelling for MEEG data
https://limo-eeg-toolbox.github.io/limo_meeg/
Other
59 stars 27 forks source link

Two sample t-test #114

Closed arnodelorme closed 2 years ago

arnodelorme commented 2 years ago

Does it make any sense to allow users to select a different LIMO 1-st level analysis to compare Betas. They should only compare Betas from the same 1-st level analysis. I can fix this. Just let me know.

Also, corrected a bug line 519 of limo_random_select

                sub_LIMO = load(cell2mat(fullfile(LIMO.data.data_dir{gp}{1}(sub),'LIMO.mat')));

instead of

                sub_LIMO = load(cell2mat(fullfile(LIMO.data.data_dir{gp}(sub),'LIMO.mat')));

It is fine. I will do a pull request later.

arnodelorme commented 2 years ago

It might be that you can select beta and cons files from the same 1st level analysis, right?

CPernet commented 2 years ago

well, by default of course the beta or con are associated with a given LIMO.mat ; there are occasional cases for which you may need to select another one. In a multisession experiment, each session is automatically built and analyzed and we also (when design are identical) create between sessions contrasts - those need a LIMO file, so yes it makes sense (also some other edge cases I did for someone before)

arnodelorme commented 2 years ago

Yes, that makes sense for session contrast. Are there a set of beta for session 1 and another set for session 2 (I mean 2 beta files, one for session 1 and one for session 2)?

CPernet commented 2 years ago

Well yes each session has betas, and one folder up you have between sessions contrasts It turns out I create a LIMO.mat for that too! makes sense because the channel array might be a little different. So while the code calling the 'LIMO-mat' should not change, users do not have to pick it up (just get the one next to file - and it not there prompt?)

https://github.com/sccn/eeglab/blob/develop/functions/studyfunc/std_limo.m#L575 https://github.com/LIMO-EEG-Toolbox/limo_tools/blob/master/limo_contrast_sessions.m#L157