Skip to content

Issue with GxE_interaction_test and lme4 - same AIC/BIC for competing models #5

@RobbieRECAP

Description

@RobbieRECAP

Hi there,

Sorry, this is my first time posting an issue for an R package so I am unsure what is standard protocol. If you need me to submit a full markdown file then I could probably do that.

I am trying to use the GxE_interaction_test() command. I have combined data from 4 different cohorts. I have one measure of the environment and one measure of their temperament (the "genes" component for my analysis).

Originally I used GxE_interaction_test() without accounting for cohort effects (first image- this all looks fine to me). This is partially because I had standardised all the cohort's data before pooling so it had a mean of 0 and an SD of 1 but also because I couldn't get the lme4=TRUE option to work correctly. Now I have had feedback from peer reviewers where they are asking for a linear mixed model.

The problem I have is that when using LME4=TRUE I get the exact same AIC/BIC values for multiple competing models (second image), which I do not think should be possible. In particular, it looks like the main effects of the genes and environment are being included in all models as the intercept-only model/no interaction models have the same AIC/BIC values as the G+E model, and it seems to be saying that when I look at the coeficients for these models (third image).

Am I doing something wrong in the formulation of the formula? I have tried modifying the specification of the random effects- I would ideally only test for random slopes by cohort- and I have tried not including the covariates but I keep getting the same AIC for all models not including interactions when using LME4.

Any help would be much appreciated!

Rob

Anmerkung 2024-09-17 095855

Anmerkung 2024-09-17 100007

Anmerkung 2024-09-17 110523

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions