[Eeglablist] Including interaction with condition with two datasets per participant

Agata Dymarska agata.dymarska at amu.edu.pl
Wed Mar 26 05:13:17 PDT 2025


Dear Cyril, dear all,

I updated Matlab and EEGLAB to the newest versions, which did help with some of the problems. I was able to perform the analysis, including 2nd level ANOVA. However, when I tried to repeat the analysis for another set of variables, it failed again at 1st level. The error in the batch report is at this stage:

"  The execution mode is session
    The following command is going to be executed :
psom_run_job('C:\Users\STUDY\derivatives\LIMO_ValenceReceiversStudy\limo_batch_report\ValenceReceiversStudy_LangValRel_GLM_Channels_Time_WLS\subject1\\glm.mat')
721-Mar-2025 13:53:05 glm    failed    (0 run / 1 fail / 2 done / 0 left)"

The only difference between the successful and failed study was that in the successful one, data was initially divided into two groups. We removed the division by specifying "group" as "" (empty) when saving the datasets (before loading them into STUDY). However, for some reason the resulting analysis (ANOVA) still displayed a group interaction.

I can see in the batch report that there is a way to display more information, but I'm not able to run this because I don't know what the JOB_NAME should be (glm or glm.mat don't work):

"More infos can be found in the individual log files. Use the following command to display these logs :
  psom_pipeline_visu('C:\Users\STUDY\derivatives\LIMO_ValenceReceiversStudy\limo_batch_report\ValenceReceiversStudy_LangValRel_GLM_Channels_Time_WLS\subject1\','log',JOB_NAME)"

I'll be grateful for any advice on how to proceed.

Best wishes,
Agata

________________________________
From: Dr Cyril, Pernet <wamcyril at gmail.com>
Sent: 17 March 2025 17:02
To: Agata Dymarska <agata.dymarska at amu.edu.pl>; EEGLAB List <eeglablist at sccn.ucsd.edu>
Subject: Re: [Eeglablist] Including interaction with condition with two datasets per participant

Hi Agata

it has not even reached any modelling or comparison, purely an issue in
STUDY. Just to clarify, you can only have 1 dataset per session, each
subject has 2 datasets  and you indicate those as session 1 and session
2. Is that correct?

cyril
> Dear Cyril,
>
> Thank you for you suggestion. I created a new STUDY as outlines, but I am still having trouble with the analysis which includes two datasets/sessions per participant.
> After creating .daterp files, in the 1st level analysis, the programme produces errors: "couldn't find a direct match between .set and .daterp". It appears that the comparison of the two is not made based on participant name but on the order in which they are loaded, and even though they are loaded in chronological order, the comparisons are made between dataset 1-2, 1-3, 1-4, then 2-3, 2-4, etc. I'm not sure why that happens, because I even ensured that the subject names and dataset names are the same so there is no doubt which data comes from which subject. The error produced is pasted below:
>
>
> generating temporary files, pulling relevant trials ...
> pulling trials for sub-Hs481a-word_selection_receiver_renamed_ses-1_design1.set ...
> Warning: couldn't find a direct match between .set and .daterp, loading C:\Users\eeg-analysis2\Study New\Strangers\Hs481a-word_selection_receiver_renamed_ses-01.daterp
> making up statistical model for sub-Hs481a-word_selection_receiver_renamed_ses-1_design1.set ...
> pulling trials for sub-Hs481a-word_selection_receiver_renamed_ses-2_design1.set ...
> Warning: couldn't find a direct match between .set and .daterp, loading C:\Users\eeg-analysis2\Study New\Couples\Hs481a-word_selection_receiver_renamed_ses-02.daterp
> making up statistical model for sub-Hs481a-word_selection_receiver_renamed_ses-2_design1.set ...
> pulling trials for sub-Hs481b-word_selection_receiver_renamed_ses-1_design1.set ...
>
>
> I'm not even sure whether this error has anything to do with the comparison of the two sessions or whether it is an earlier stage of an individual dataset analysis that is not working.
> Can you please advise on this?
>
> Thank you,
> Agata
>
>
>
> Hi Agata
>
> alternatively you can set the two sessions in STUDY. Each session with
> language and valence. STUDY/LIMO will automatically compute the
> difference between sessions, ie you end up with contrasts language
> difference and valence difference. This allows setting up and ANOVA 2x2
> on those difference (of course each effect now reflects the
> difference/interaction with relationship which is like having an ANOVA
> with only interaction terms). The main differences with merging are (1)
> does not assume the same variance between sessions (2) but does not
> allow testing main effects across sessions (although you can do the 2x2
> in each session to check consistency of results).
>
> Cyril
>
>
> _______________________________________________
> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu or visit https://urldefense.com/v3/__https://eur01.safelinks.protection.outlook.com/?url=https*3A*2F*2Fsccn.ucsd.edu*2Fmailman*2Flistinfo*2Feeglablist&data=05*7C02*7Cagata.dymarska*40amu.edu.pl*7C7e038b67b33840ce859308dd656d1f51*7C73689ee1b42f4e25a5f666d1f29bc092*7C0*7C0*7C638778241574098955*7CUnknown*7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ*3D*3D*7C0*7C*7C*7C&sdata=D8tH*2BCuKhb6*2BoZb5nSeCZhSNDeQnt*2BQRh9Ky*2BgZUUPM*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUl!!Mih3wA!EOKHJjWj2v4C_xmo3YGM_fXsJkVHJhYtKvkJcSTxBAqKM7smzsMGWgqHT27pXnxQ87GpnxBpWVHBjyfTEqijnjsaQTsnq0BSpg$ <https://sccn.ucsd.edu/mailman/listinfo/eeglablist >.

--
Dr Cyril Pernet, PhD, OHBM fellow, SSI fellow
Neurobiology Research Unit,
Building 8057, Blegdamsvej 9
Copenhagen University Hospital, Rigshospitalet
DK-2100 Copenhagen, Denmark

wamcyril at gmail.com
https://urldefense.com/v3/__https://eur01.safelinks.protection.outlook.com/?url=https*3A*2F*2Fzcal.co*2Fcpernet&data=05*7C02*7Cagata.dymarska*40amu.edu.pl*7C7e038b67b33840ce859308dd656d1f51*7C73689ee1b42f4e25a5f666d1f29bc092*7C0*7C0*7C638778241574123186*7CUnknown*7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ*3D*3D*7C0*7C*7C*7C&sdata=hFSgWQKcKKFMWX22*2FxxXzRuQBg*2FNSrvonzupceJd1m0*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSU!!Mih3wA!EOKHJjWj2v4C_xmo3YGM_fXsJkVHJhYtKvkJcSTxBAqKM7smzsMGWgqHT27pXnxQ87GpnxBpWVHBjyfTEqijnjsaQTttwYi5LQ$ <https://urldefense.com/v3/__https://zcal.co/cpernet__;!!Mih3wA!EOKHJjWj2v4C_xmo3YGM_fXsJkVHJhYtKvkJcSTxBAqKM7smzsMGWgqHT27pXnxQ87GpnxBpWVHBjyfTEqijnjsaQTt7FyUf9w$ >
https://urldefense.com/v3/__https://eur01.safelinks.protection.outlook.com/?url=https*3A*2F*2Fcpernet.github.io*2F&data=05*7C02*7Cagata.dymarska*40amu.edu.pl*7C7e038b67b33840ce859308dd656d1f51*7C73689ee1b42f4e25a5f666d1f29bc092*7C0*7C0*7C638778241574136876*7CUnknown*7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ*3D*3D*7C0*7C*7C*7C&sdata=hJpfvS*2BGOeagebfllTnp0YlUBatHrk88MvbqYc*2FKG8Y*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSU!!Mih3wA!EOKHJjWj2v4C_xmo3YGM_fXsJkVHJhYtKvkJcSTxBAqKM7smzsMGWgqHT27pXnxQ87GpnxBpWVHBjyfTEqijnjsaQTvWBPy_LQ$ <https://urldefense.com/v3/__https://cpernet.github.io/__;!!Mih3wA!EOKHJjWj2v4C_xmo3YGM_fXsJkVHJhYtKvkJcSTxBAqKM7smzsMGWgqHT27pXnxQ87GpnxBpWVHBjyfTEqijnjsaQTtiPBD1QA$ >
https://urldefense.com/v3/__https://eur01.safelinks.protection.outlook.com/?url=https*3A*2F*2Forcid.org*2F0000-0003-4010-4632&data=05*7C02*7Cagata.dymarska*40amu.edu.pl*7C7e038b67b33840ce859308dd656d1f51*7C73689ee1b42f4e25a5f666d1f29bc092*7C0*7C0*7C638778241574150064*7CUnknown*7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ*3D*3D*7C0*7C*7C*7C&sdata=EFtnegfiBWn8GmFIhUJN2uKWkKoVlKanzfsV3FIM7Qw*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUl!!Mih3wA!EOKHJjWj2v4C_xmo3YGM_fXsJkVHJhYtKvkJcSTxBAqKM7smzsMGWgqHT27pXnxQ87GpnxBpWVHBjyfTEqijnjsaQTtMCdaCXQ$ <https://urldefense.com/v3/__https://orcid.org/0000-0003-4010-4632__;!!Mih3wA!EOKHJjWj2v4C_xmo3YGM_fXsJkVHJhYtKvkJcSTxBAqKM7smzsMGWgqHT27pXnxQ87GpnxBpWVHBjyfTEqijnjsaQTuG89Tsww$ >



More information about the eeglablist mailing list