Non-family GXE with G-->E
Posted on
Paul Jeffries
Joined: 07/02/2021
Forums
I am attempting to conduct a genomic SEM with a GxE term and a term for the effect of G on E. The model would also include 11 other covariates. The study was a case-control design.
I used the R package gwsem to conduct a GxE analysis without the effect of G on E. However, I can not use it for the current analysis since the package does not permit a term to be a covariate and a dependent variable.
I have tried to create a custom model by writing mxPath statements but I ran into two problems. One, I am not sure how to specify the interaction term. Two, I get an error message when I run mxRun that the E term is not specified although it is included in two path statements: once as from=E and once to=E.
I would greatly appreciate any help in specifying my model.
more details
Log in or register to post comments
Clarification of model
The added complexity is that we want to test whether G has a direct effect on E, for there is some evidence of a genetic predisposition for earlier cannabis use. It is this last element that I am having trouble building into the model.
I have attached the script I have so far as well as a diagram of what I am trying to model. Since I have not written script for the GxE interaction, I have drawn that path in the diagram with red.
Again, any help with this is greatly appreciated.
Log in or register to post comments
In reply to Clarification of model by Paul Jeffries
It sounds like you want to do
Log in or register to post comments
In reply to It sounds like you want to do by AdminRobK
Clarification of model
Log in or register to post comments
In reply to Clarification of model by Paul Jeffries
Duplicate the data column in the dataset?
data$modSNP <- data$SNP
you could use data.modSNP for the moderation but still have the SNP in the model as an observed variable. Always beware of uneven measurement precision in your outcomes when testing moderators. Such heteroscedasticity can fool analyses into thinking that there's GxE when there isn't, or that there isn't when there is...Log in or register to post comments
In reply to Duplicate the data column in the dataset? by AdminNeale
Also note
Log in or register to post comments
In reply to Clarification of model by Paul Jeffries
gwsem?
Log in or register to post comments