4
$\begingroup$

(1) Research background:

My research design involves having each participant complete multiple trials to assess their happiness rating while simultaneously recording EEG data. Each participant has different EEG channels. I aim to use EEG data metrics (such as avg_HFB and peri_HFB) from each channel to predict happiness ratings. Since participants underwent repeated measurements at different times, I constructed a linear mixed model with subject and channel as random variables. Channels are nested within subjects, and happiness rating (zrating) is the dependent variable, as follows:

zrating ~ avg_HFB * peri_HFB + (1|subject/channels)

(2) Problem Encountered:

However, during fitting, I encountered a singular fit issue where the variance of subject:channels was equal to 0.

enter image description here

(3) Sample Data:

Here is data structure and some example data:

enter image description here enter image description here

There are about 15 participants, each with 1-8 channels, and 30-140 trials.

(4) Attempts I have Made:

  1. In the linear mixed model, if the random factor includes only subject or channels, the model can be fitted successfully.

picture2

  1. By duplicating the data for a few participants (approximately 600 observations), the nested model could be fitted.

enter image description here

(5) My guess:

For a given subject, the channels simutaneously recorded the EEG data while subjects are doing happyratings, which means that all channels of a subject correspond to the same set of dependent variable data (the happyrating data). Therefore, I assume that the variation in the dependent variable is only reflected between participants. Within the same participant, there might be no variation between channels (although the number of trials and specific trials may vary). If so, having either subject or channel as a random factor should be sufficient to capture this variability. Thus, I speculate that the reason for having only subject variance when both subject and channel are treated as random factors might be due to this.

The distribution of zratings across various channels for a given subject: enter image description here

However, this is only my logical or intuitive speculation. I'm unsure if this reasoning is right, and it cannot explain why replicating the data allows the model to fit (as the data structure should remain unchanged). And another question is that, similar models in other literature are exactly specified as (1|subject/channels), I don't know how they can make it...

This is the first time that I ask a question on this platform, so if any further information is required, please let me know.

Thanks!

Thanks to BenP's suggestion, I tested the variation across channels in all subjects, and the result is as follows:

enter image description here

(There are 12 subjects instead of 13 since one of them has only one channel.)

The p value of subject2 is less than 0.05, so I checked the data:

enter image description here enter image description here

It seems that it's because one of his channels contains different specific trials.

$\endgroup$
18
  • $\begingroup$ Please can you explain what this means ", within each subject, the dependent variables are the same dataset for different channels. (that's because in every trial of a subject, EEG data in different channels correspond to the same behavior index, which is the dependent variable)." ?? Perhaps it will help if you show us an extract of your data, for instance the data for 1 subject. $\endgroup$ Commented Dec 17, 2023 at 11:38
  • $\begingroup$ Thanks for your suggestion! I have put some data in the description. $\endgroup$
    – Eve
    Commented Dec 17, 2023 at 12:11
  • $\begingroup$ Thanks for adding that, but I'm sorry, I still don't understand the problem. You said "Take a partial data of sub-a as an example, every channel records many same trials.". What does this mean ? Also, please can you describe the study design and tell us your research question(s). $\endgroup$ Commented Dec 17, 2023 at 15:33
  • 1
    $\begingroup$ Thanks for your comment. After answering the question as an comment, I actually also edited the post. $\endgroup$
    – Eve
    Commented Dec 19, 2023 at 17:04
  • 1
    $\begingroup$ Your guess could be right. Did you check that, for each subject, the channel means of zrating show some variation? Maybe that the two means for sub-a are very very close and this could be the case for all subjects. In that case you may not even need different channels, one could be enough. $\endgroup$
    – BenP
    Commented Dec 20, 2023 at 3:16

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.