Hi lavaaners,
I have modelled three latent variables in which one represents genetic data, the second brain volumetric information and the third severity of symptoms for a psychiatric disorder. During the analysis of this dataset I considered designing a mediation model in which symptom severity is regressed on the genetic latent either directly or via the brain volumetric latent. However, according to Kline (2015) mediation models assumes no interaction between the cause (genetic susceptibility) and the mediator (brain volume), which is likely not true in this case as the particular genes for the disorder susceptibility may be involved in the brain volume of those patients. Is it possible to specify a model such that the genetic latent interacts with the brain volume making this model a sort of a moderated mediation type of model? I could only find moderated mediation using categorical variables, not latent variables.
The syntax for the model I have been testing is:
total <- "
vol =~ lh_parahippocampal_area + lh_entorhinal_area
+ lh_transversetemporal_area + rh_temporalpole_area +lh_frontalpole_area
+rh_frontalpole_area
sym =~ z_pos_2grp+ z_neg_2grp+ z_dis_2grp
gen =~ BDNFord + EGFRord + IL3ord +FGFord #+ COMTord
sym ~ c*gen
vol ~ a*gen
sym ~ b*vol
ab := a*b
totalaz := c+(a*b)
"
Best,
luis
Is it possible to specify a model such that the genetic latent interacts with the brain volume making this model a sort of a moderated mediation type of model? I could only find moderated mediation using categorical variables, not latent variables.
library(semTools)
?indProd--
You received this message because you are subscribed to a topic in the Google Groups "lavaan" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lavaan/Ytwt9lrUC5k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lavaan+unsubscribe@googlegroups.com.
To post to this group, send email to lav...@googlegroups.com.
Visit this group at https://groups.google.com/group/lavaan.
For more options, visit https://groups.google.com/d/optout.
Dear Terrence and fellow lavaaners,
Sorry for bumping this discussion, but only now I could return to this problem.
indProb seems to be what I need to solve it, however I need further help on how to use it. For that, I will use a simpler model than the one originally posted. Please consider the model specification below:
model7 <- “
sch =~ pos_2grp+ neg_2grp+ dis_2grp
gen =~ BDNFord + EGFRord + IL3ord
cog =~ attention + verbal + workingm
sch ~ cprime * gen
sch ~ b * cog
sch ~ bprime * genXcog
cog ~ a * gen
cog ~~ genXcog
gen ~~ genXcog
bgen := b + bprime
indgen := bgen * a
indNgen := b * a
indDiff := indgen - indNgen
”
fit7 <- sem(model7, dataset, estimator = "MLM")
summary(fit7)
Where sch is symptom severity measured in tests, cog is trivial cognitive testing (and the mediator) and gen is formed by ordinal variables (0=absence of risk allele, 1=heterozygous, 2=homozygous). The model I have in mind looks like the figure below, from the paper [^1]. On trying to run this specification, lavaan will complain that cog is not an observed variable and not run the analysis.

Now, if I try to follow your suggestion and run indProd:
dataset<-indProd(dataset, var1=c("BDNFord","EGFRord","IL3ord"),
var2=c("attention","verbal","workingm"))
dataset is now the dataset that includes BDNFord.attention, EGFRord.verbal, IL3ord.workingm. This is where I got stuck, how can I obtain a general product genXcog that allows me to use in this moderated mediation model?
Thank you,
Luis
[^1]: Jeremy N.V Miles, Magdalena Kulesza, Brett Ewing, Regina A Shih, Joan S Tucker, Elizabeth J D’Amico, (2015) “Moderated
mediation analysis: an illustration using the association of gender with delinquency and mental health”, Journal of Criminal
Psychology, Vol. 5 Issue: 2, pp.99-123, https://doi.org/10.1108/JCP-02-2015-0010
lavaan will complain that cog is not an observed variable and not run the analysis.
how can I obtain a general product genXcog that allows me to use in this moderated mediation model?
genXcog =~ BDNFord.attention + EGFRord.verbal + IL3ord.workingm + ...